summaryrefslogtreecommitdiffstats
path: root/crypto/cast5.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-27 00:54:09 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-12 11:27:18 +0200
commiteb6e8ddf06ff0d6b6548ca0b95a4edfeb2aaadd0 (patch)
tree4763ef7bf41e50e3d443fefc3a58faa3ee0df31a /crypto/cast5.c
parentd281b80c46da8bae806c4ef5682187f07e35389d (diff)
downloadblackbird-op-linux-eb6e8ddf06ff0d6b6548ca0b95a4edfeb2aaadd0.tar.gz
blackbird-op-linux-eb6e8ddf06ff0d6b6548ca0b95a4edfeb2aaadd0.zip
mfd: Fix 88pm860x uninitialized variable and clean up
The original code had a compile warning: drivers/mfd/88pm860x-core.c:431: warning: ‘ret’ may be used uninitialized in this function It seems like the warning is valid if either pdata or pdata->touch is NULL. This patch checks pdata and pdata->touch at the beginning of the function. That means everything can be pulled in one indent level. Now all the statements fit within the 80 character limit. Also at that point the "use_gpadc" variable isn't needed and removing it simplifies the logic. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Haojian Zhuang <hzhuang1@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'crypto/cast5.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud