]> git.baikalelectronics.ru Git - kernel.git/commit
staging: line6: eliminate useless NULL checks
authorStefan Hajnoczi <stefanha@gmail.com>
Sat, 10 Dec 2011 01:12:30 +0000 (02:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:26:09 +0000 (19:26 -0800)
commit7230f9b1f2481e4ca236b1c6c3df4440960b0572
tree146739a24800d2e99ba018274bcf7aea508e1da9
parentbbc311f6a8f31d3f71de970272a31b2e704daa75
staging: line6: eliminate useless NULL checks

The line6 driver checks struct field addresses for NULL where it does
not make sense to do so.  The struct has already been checked for NULL
and there is no value in checking the first field's address too.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/pod.c
drivers/staging/line6/podhd.c
drivers/staging/line6/toneport.c
drivers/staging/line6/variax.c