Julia Lawall 95cc7baa7f drivers/scsi: remove unnecessary NULL test
At the point where cmnd is initialized, it is tested for NULL, so it
doesn't have to be tested again here.

A simplified version of the semantic match that detects this problem is as
follows (http://coccinelle.lip6.fr/):

// <smpl>
@match exists@
expression x, E;
identifier fld;
@@

* x->fld
  ... when != \(x = E\|&x\)
* x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-11 08:59:00 -07:00
..
2010-08-03 09:04:14 +02:00
2008-01-11 18:22:30 -06:00
2008-08-29 02:13:10 -07:00
2010-07-27 12:02:00 -05:00
2010-07-27 12:02:03 -05:00
2010-01-18 10:48:08 -06:00
2008-12-28 20:00:03 +01:00
2010-05-02 15:55:03 -04:00
2008-01-30 13:14:02 -06:00
2010-08-11 08:58:59 -07:00
2008-01-30 13:14:02 -06:00
2010-08-07 18:24:28 +02:00
2010-08-07 18:26:08 +02:00
2010-07-28 09:07:50 -05:00
2008-02-07 18:02:44 -06:00
2009-12-10 08:54:13 -06:00