Re: [PATCH] sysctl: Use BUG_ON instead of BUG

2012-09-04 Thread Andrew Morton
On Mon, 3 Sep 2012 09:00:25 +0530 Prasad Joshi wrote: > The use of if (!head) BUG(); can be replaced with single line > BUG_ON(!head). > > Signed-off-by: Prasad Joshi > --- > fs/proc/proc_sysctl.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] sysctl: Use BUG_ON instead of BUG

2012-09-04 Thread Andrew Morton
On Mon, 3 Sep 2012 09:00:25 +0530 Prasad Joshi prasadjoshi.li...@gmail.com wrote: The use of if (!head) BUG(); can be replaced with single line BUG_ON(!head). Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- fs/proc/proc_sysctl.c |3 +-- 1 files changed, 1 insertions(+),

[PATCH] sysctl: Use BUG_ON instead of BUG

2012-09-02 Thread Prasad Joshi
The use of if (!head) BUG(); can be replaced with single line BUG_ON(!head). Signed-off-by: Prasad Joshi --- fs/proc/proc_sysctl.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index dfafeb2..63bdfa0 100644 ---

[PATCH] sysctl: Use BUG_ON instead of BUG

2012-09-02 Thread Prasad Joshi
The use of if (!head) BUG(); can be replaced with single line BUG_ON(!head). Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- fs/proc/proc_sysctl.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index