09 Aug, 2014

1 commit

  • Use BUG_ON(x) rather than if(x) BUG();

    The semantic patch that fixes this problem is as follows:

    //
    @@ identifier x; @@
    -if (!x) BUG();
    +BUG_ON(!x);
    //

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Cc: Stefani Seibold
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Himangi Saraogi
     

15 Nov, 2013

1 commit


28 Feb, 2013

2 commits