Re: [PATCH][V2] ocfs2: remove deadcode on variable tmp_oh check

2019-09-02 Thread Joseph Qi
On 19/9/2 17:34, Colin King wrote: > From: Colin Ian King > > At the end of ocfs2_inode_lock_tracker tmp_oh is true because an > earlier check on tmp_oh being false returns out of the function. > Since tmp_oh is true, the function will always return 1 so remove > the redundant check and return

[PATCH][V2] ocfs2: remove deadcode on variable tmp_oh check

2019-09-02 Thread Colin King
From: Colin Ian King At the end of ocfs2_inode_lock_tracker tmp_oh is true because an earlier check on tmp_oh being false returns out of the function. Since tmp_oh is true, the function will always return 1 so remove the redundant check and return of 0. Also update description in comment, return