Skip to content

Commit

Permalink
mfd: da9053: Fix compiler warning message for uninitialised variable
Browse files Browse the repository at this point in the history
Fix compiler warning caused by an uninitialised variable inside
da9052_group_write() function. Defaulting the value to zero covers
the trivial case.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Steve Twiss authored and Lee Jones committed Jun 30, 2016
1 parent 82d8eb4 commit ba4a1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mfd/da9052/da9052.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg,
static inline int da9052_group_write(struct da9052 *da9052, unsigned char reg,
unsigned reg_cnt, unsigned char *val)
{
int ret;
int ret = 0;
int i;

for (i = 0; i < reg_cnt; i++) {
Expand Down

0 comments on commit ba4a1c2

Please sign in to comment.