From: Bartlomiej Zolnierkiewicz Date: Tue, 31 Mar 2009 18:15:00 +0000 (+0200) Subject: ide-cd: remove dead code from cdrom_decode_status() X-Git-Tag: v2.6.30-rc1~418^2~50 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=13eae6a48fc57495eb9e733430b8fc20df7bf415;p=karo-tx-linux.git ide-cd: remove dead code from cdrom_decode_status() There should be no functional changes caused by this patch. Cc: Borislav Petkov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 6f64fb2f63d0..4a289711c551 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -321,12 +321,6 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) err = ide_read_error(drive); sense_key = err >> 4; - if (rq == NULL) { - printk(KERN_ERR PFX "%s: missing rq in %s\n", - drive->name, __func__); - return 1; - } - ide_debug_log(IDE_DBG_RQ, "stat: 0x%x, good_stat: 0x%x, cmd[0]: 0x%x, " "rq->cmd_type: 0x%x, err: 0x%x", stat, good_stat, rq->cmd[0], rq->cmd_type,