[PATCH 0/6] use BUG_ON correctly
From: Coly Li
Date: Wed Jan 26 2011 - 13:30:26 EST
BUG_ON() already uses unlikely() inside its definition if possible,
therefore code should not use BUG_ON() with explicit unlikely()
like BUG_ON(unlikely(...)), an explicit unlikely() doesn't make
things better.
This patch set fixes all incorrect usage of BUG_ON() as the above
line mentioned.
Signed-off-by: Coly Li <bosong.ly@xxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Greg KH <gregkh@xxxxxxx>
---
drivers/dma/iop-adma.c | 6 +++---
drivers/dma/mv_xor.c | 6 +++---
drivers/dma/ppc4xx/adma.c | 8 ++++----
drivers/scsi/scsi_lib.c | 4 ++--
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 14 +++++++-------
mm/nommu.c | 10 +++++-----
6 files changed, 24 insertions(+), 24 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/