]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] sg: remove unnecessary check
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 23 May 2007 21:41:36 +0000 (14:41 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Mon, 28 May 2007 14:08:32 +0000 (09:08 -0500)
commitfb119935e11b98230f20c500e9f9125ddf0f3a4d
tree106c15b2a5e805f91a172ac637525a1cf3bdcbda
parentdeff2627cda995c926788fd9192337ec3febe7b5
[SCSI] sg: remove unnecessary check

coverity spotted this (cid #758).  All callers dereference sfp, so we dont
need this check.  In addition to this, we dereference it earlier in the
function.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c