diff options
author | Jayachandran C <jchandra@digeo.com> | 2005-10-18 20:11:16 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-28 18:42:31 -0400 |
commit | 80d904c43b11105c16395b240078ccc2f7ac6074 (patch) | |
tree | 91e0a42a0ce1b9b52691a11e01205467063f4882 /drivers/scsi | |
parent | 4647722673994787bfa294a163fcb6955b93d417 (diff) |
[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/scsi')
-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: | |||
456 | static int sr_block_open(struct inode *inode, struct file *file) | 456 | static int sr_block_open(struct inode *inode, struct file *file) |
457 | { | 457 | { |
458 | struct gendisk *disk = inode->i_bdev->bd_disk; | 458 | struct gendisk *disk = inode->i_bdev->bd_disk; |
459 | struct scsi_cd *cd = scsi_cd(inode->i_bdev->bd_disk); | 459 | struct scsi_cd *cd; |
460 | int ret = 0; | 460 | int ret = 0; |
461 | 461 | ||
462 | if(!(cd = scsi_cd_get(disk))) | 462 | if(!(cd = scsi_cd_get(disk))) |