提交 80d904c4 编写于 作者: J Jayachandran C 提交者: James Bottomley

[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: NJayachandran C. <c.jayachandran@gmail.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 46477226
......@@ -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)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册