Re: [PATCH] UBIFS: Delete unnecessary checks before the function call "iput"

2015-11-06 Thread Richard Weinberger
On Wed, Nov 4, 2015 at 8:10 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 4 Nov 2015 20:00:42 +0100 > > The iput() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the C

[PATCH] UBIFS: Delete unnecessary checks before the function call "iput"

2015-11-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Nov 2015 20:00:42 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/ubifs/reco