Commit 5053dc60 authored by James Bottomley's avatar James Bottomley

Cset exclude: jejb@mulgrave.(none)|ChangeSet|20040404150128|05866

scsi_get_device needs no NULL check
parent 2e710772
......@@ -977,8 +977,6 @@ int scsi_track_queue_full(struct scsi_device *sdev, int depth)
*/
int scsi_device_get(struct scsi_device *sdev)
{
if(!sdev)
return -ENXIO;
if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL)
return -ENXIO;
if (!get_device(&sdev->sdev_gendev))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment