]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rts_pstor: dont cast void* from kmalloc()
authorThomas Meyer <thomas@m3y3r.de>
Sat, 13 Aug 2011 09:27:10 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 22:22:58 +0000 (15:22 -0700)
commit6a7c2cd42965f8c7a21b670c67c7b49ec1b91575
tree18be5c5567e792c9ab74300db94cb5c66a30523e
parent6b8e361d2a1126c361d8594ed04291c646d3bf1a
staging: rts_pstor: dont cast void* from kmalloc()

 Casting (void *) value returned by kmalloc is useless
 as mentioned in Documentation/CodingStyle, Chap 14.

 The semantic patch that makes this output is available
 in scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci.

 More information about semantic patching is available at
 http://coccinelle.lip6.fr/

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/rtsx_scsi.c