summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-07-31 10:42:00 +0200
committerLen Brown <len.brown@intel.com>2009-08-28 21:17:08 +0200
commit14485c57270e8f3de2a25abaf93bae5712c97e9e (patch)
tree4d9a05bc9b88d5722088c1f816af64ba7a47c0c2 /fs/ext4
parentfujitsu-laptop: support led-class as module (diff)
downloadlinux-14485c57270e8f3de2a25abaf93bae5712c97e9e.tar.xz
linux-14485c57270e8f3de2a25abaf93bae5712c97e9e.zip
fujitsu-laptop: Correct redundant test
device and acpi_driver_data(device) were tested just a few lines above. A simplified version of the semantic match that finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @r exists@ local idexpression x; expression E; @@ if (x == NULL || ...) { ... when forall return ...; } .. when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\) ( *x == NULL | *x != NULL ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions