diff options
author | Jayachandran C <jchandra@digeo.com> | 2005-10-18 17:11:16 -0700 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-28 17:42:31 -0500 |
commit | 80d904c43b11105c16395b240078ccc2f7ac6074 (patch) | |
tree | 91e0a42a0ce1b9b52691a11e01205467063f4882 | |
parent | 4647722673994787bfa294a163fcb6955b93d417 (diff) | |
download | blackbird-op-linux-80d904c43b11105c16395b240078ccc2f7ac6074.tar.gz blackbird-op-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>
-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))) |