From: Jayachandran C Date: Wed, 19 Oct 2005 00:11:16 +0000 (-0700) Subject: [SCSI] sr: remove dead code X-Git-Tag: v2.6.15-rc1~723^2~2^2~30 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d904c43b11105c16395b240078ccc2f7ac6074;p=linux-2.6 [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. Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 9e267c6d3a..3067e5a7b7 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)))