From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933354AbcIUUAO (ORCPT ); Wed, 21 Sep 2016 16:00:14 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34123 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752360AbcIUUAM (ORCPT ); Wed, 21 Sep 2016 16:00:12 -0400 From: Harman Kalra To: b.zolnierkie@samsung.com, tj@kernel.org Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Harman Kalra Subject: [PATCH] ata: Replace BUG() with BUG_ON(). Date: Thu, 22 Sep 2016 01:29:48 +0530 Message-Id: <1474487988-4207-1-git-send-email-harman4linux@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace BUG() with BUG_ON(). Caught by coccinelle. Signed-off-by: Harman Kalra --- drivers/ata/pata_octeon_cf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 2724595..475a006 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -152,8 +152,7 @@ static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev) div = 8; T = (int)((1000000000000LL * div) / octeon_get_io_clock_rate()); - if (ata_timing_compute(dev, dev->pio_mode, &timing, T, T)) - BUG(); + BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T)); t1 = timing.setup; if (t1) -- 1.7.9.5