[PATCH] btrfs: remove unnecessary error check

2014-07-09 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com If (!IS_ERR(trans) || PTR_ERR(trans) != -ENOSPC)) is false, obviously trans is -ENOSPC. So we can safely remove the redundant (PTR_ERR(trans) == -ENOSPC) check. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com ---

Re: [PATCH] btrfs: remove unnecessary error check

2014-07-09 Thread Eric Sandeen
On Jul 9, 2014, at 10:20 PM, Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com If (!IS_ERR(trans) || PTR_ERR(trans) != -ENOSPC)) is false, obviously trans is -ENOSPC. So we can safely remove the redundant (PTR_ERR(trans) ==