From: Bartlomiej Zolnierkiewicz Date: Thu, 11 Oct 2007 21:54:01 +0000 (+0200) Subject: sc1200: remove redundant warning message from sc1200_tune_chipset() X-Git-Tag: v2.6.24-rc1~1456^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fabe1510568acd5194f630dbbcf77a34610d7e9e;p=linux-2.6-omap-h63xx.git sc1200: remove redundant warning message from sc1200_tune_chipset() ide_config_drive_speed() called by sc1200_set_xfer_mode() already gives a meaningful warning message in case of failure. Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/sc1200.c b/drivers/ide/pci/sc1200.c index f9f5ed90657..d46627eced9 100644 --- a/drivers/ide/pci/sc1200.c +++ b/drivers/ide/pci/sc1200.c @@ -149,10 +149,8 @@ static int sc1200_tune_chipset(ide_drive_t *drive, const u8 mode) /* * Tell the drive to switch to the new mode; abort on failure. */ - if (sc1200_set_xfer_mode(drive, mode)) { - printk("SC1200: set xfer mode failure\n"); + if (sc1200_set_xfer_mode(drive, mode)) return 1; /* failure */ - } switch (mode) { case XFER_PIO_4: