diff options
author | Jayachandran C <jchandra@digeo.com> | 2005-10-19 02:11:16 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-29 00:42:31 +0200 |
commit | 80d904c43b11105c16395b240078ccc2f7ac6074 (patch) | |
tree | 91e0a42a0ce1b9b52691a11e01205467063f4882 /drivers | |
parent | [SCSI] Fix issue reported by coverity in drivers/scsi/scsi_ioctl.c (diff) | |
download | linux-80d904c43b11105c16395b240078ccc2f7ac6074.tar.xz linux-80d904c43b11105c16395b240078ccc2f7ac6074.zip |
[SCSI] sr: remove dead code
This patch fixes an issue reported in drivers/scsi/sr.c by Coverity
Error reported: Pointer returned from "scsi_cd" is never used
Patch description:
Remove the scsi_cd() call as it does not have any effect.
Signed-off-by: Jayachandran C. <c.jayachandran@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 9e267c6d3a43..3067e5a7b75e 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -456,7 +456,7 @@ queue: static int sr_block_open(struct inode *inode, struct file *file) { struct gendisk *disk = inode->i_bdev->bd_disk; - struct scsi_cd *cd = scsi_cd(inode->i_bdev->bd_disk); + struct scsi_cd *cd; int ret = 0; if(!(cd = scsi_cd_get(disk))) |