On Sat, Nov 03, 2012 at 09:30:18PM +0100, Julia Lawall wrote: > From: Julia Lawall <julia.law...@lip6.fr> > > Just use WARN_ON rather than an if containing only WARN_ON(1). > > A simplified version of the semantic patch that makes this transformation > is as follows: (http://coccinelle.lip6.fr/) > > // <smpl> > @@ > expression e; > @@ > - if (e) WARN_ON(1); > + WARN_ON(e); > // </smpl> > > Signed-off-by: Julia Lawall <julia.law...@lip6.fr> Reviewed-by: David Sterba <dste...@suse.cz> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- [PATCH 0/8] drop if around WARN_ON Julia Lawall
- [PATCH 3/8] arch/x86/kernel/cpu/mtrr/cleanup.c: drop if ... Julia Lawall
- [PATCH 1/8] fs/btrfs: drop if around WARN_ON Julia Lawall
- Re: [PATCH 1/8] fs/btrfs: drop if around WARN_ON David Sterba
- [PATCH 5/8] drivers/scsi/qla2xxx/qla_nx.c: drop if aroun... Julia Lawall
- [PATCH 6/8] arch/arm/mach-omap2/dpll3xxx.c: drop if arou... Julia Lawall
- [PATCH 7/8] drivers/scsi/scsi_transport_fc.c: drop if ar... Julia Lawall
- [PATCH 8/8] drivers/net/wireless/ath/ath6kl/hif.c: drop ... Julia Lawall
- [PATCH 2/8] drivers/scsi/bfa/bfa_svc.c: drop if around W... Julia Lawall
- [PATCH 4/8] fs/ext3/inode.c: drop if around WARN_ON Julia Lawall
- Re: [PATCH 0/8] drop if around WARN_ON Sasha Levin
- Re: [PATCH 0/8] drop if around WARN_ON Julia Lawall
- Re: [PATCH 0/8] drop if around WARN_ON Sasha Levin