linux-4.6-rc5/arch/arm/mach-pxa/pcm990-baseboard.c:354: possible missing code ?
From: David Binderman <hidden> Date: 2016-04-25 20:26:22
Hello there,
linux-4.6-rc5/arch/arm/mach-pxa/pcm990-baseboard.c:354]: (style) Variable 'val' is assigned a value that is never used.
Source code is
??? if ((1 << vdd) & p_d->ocr_mask)
??????? val |= PCM990_CTRL_MMC2PWR;
??? else
??????? val &= ~PCM990_CTRL_MMC2PWR;
??? pcm990_cpld_writeb(PCM990_CTRL_MMC2PWR, PCM990_CTRL_REG5);
??? return 0;
Suggest either use local variable val or delete it.
Regards
David Binderman