diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 0c691a60a756..85d38940a6c9 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1842,7 +1842,7 @@ sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) | |||
1842 | int blk_size = buff_size; | 1842 | int blk_size = buff_size; |
1843 | struct page *p = NULL; | 1843 | struct page *p = NULL; |
1844 | 1844 | ||
1845 | if ((blk_size < 0) || (!sfp)) | 1845 | if (blk_size < 0) |
1846 | return -EFAULT; | 1846 | return -EFAULT; |
1847 | if (0 == blk_size) | 1847 | if (0 == blk_size) |
1848 | ++blk_size; /* don't know why */ | 1848 | ++blk_size; /* don't know why */ |