fujitsu-laptop: remove superfluous NULL pointer checks
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 31 Jul 2009 08:43:56 +0000 (08:43 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 19:17:08 +0000 (15:17 -0400)
commit67059406219d30a36b7ca93f863eb1f3032f05ce
treedb67d87472511aaaf837254704526b275f69fac7
parent14485c57270e8f3de2a25abaf93bae5712c97e9e
fujitsu-laptop: remove superfluous NULL pointer checks

This takes care of the following entries from Dan's list:

drivers/platform/x86/fujitsu-laptop.c +327 set_lcd_level(13) warning:
variable derefenced before check 'fujitsu'
drivers/platform/x86/fujitsu-laptop.c +358 set_lcd_level_alt(13) warning:
variable derefenced before check 'fujitsu'

Reported-by: Dan Carpenter <error27@gmail.com>
Cc: corbet@lwn.net
Cc: eteo@redhat.com
Cc: Julia Lawall <julia@diku.dk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/fujitsu-laptop.c