[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>
This commit is contained in:
Jayachandran C 2005-10-18 17:11:16 -07:00 committed by James Bottomley
parent 4647722673
commit 80d904c43b
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ static int sr_init_command(struct scsi_cmnd * SCpnt)
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)))