scsi: Drop useless null test in scsi_unit_attention()
commit0bf8264e2d2bd19c1eecf9bde0e59284ef47eabb
authorMarkus Armbruster <armbru@redhat.com>
Thu, 17 Jan 2013 12:07:47 +0000 (17 13:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 14:07:03 +0000 (22 15:07 +0100)
treea6939f5d780cca7bd28dc47a081c3395a7a7386d
parent032f0101aa6e009efda3a419379837ebceaeade1
scsi: Drop useless null test in scsi_unit_attention()

req was created by scsi_req_alloc(), which initializes req->dev to a
value it dereferences.  req->dev isn't changed anywhere else.
Therefore, req->dev can't be null.

Drop the useless null test; it spooks Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/scsi-bus.c