Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-06-26 Thread Colin Ian King
On 26/06/2019 07:18, Dan Carpenter wrote: > On Tue, Jun 25, 2019 at 02:55:11PM -0400, Mike Marshall wrote: You often send these patches before they hit linux-next so I had skipped reviewing this one when you sent it. >> >> I know Linus is likely to refuse pull requests for stuff that >> h

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-06-25 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 02:55:11PM -0400, Mike Marshall wrote: > >> You often send these patches before they hit linux-next so I had skipped > >> reviewing this one when you sent it. > > I know Linus is likely to refuse pull requests for stuff that > has not been through linux-next, so I make sure

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-06-25 Thread Mike Marshall
>> The only explanation I can think of is that you guys are discussing >> different code. :P My response contained several conflations :-) ... The code in file.c that Colin has flagged does indeed have buffer_index being initialized needlessly, and the assignment noted by Dan is also needless. Th

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-05-21 Thread Dan Carpenter
On Thu, May 16, 2019 at 12:06:31PM -0400, Mike Marshall wrote: > Hi Colin... > > Thanks for the patch. Before I initialized buffer_index, Dan Williams sent > in a warning that a particular error path could try to use ibuffer_index > uninitialized. I could induce the problem he described with one >

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-05-21 Thread Dan Carpenter
On Sat, May 11, 2019 at 02:27:00PM +0100, Colin King wrote: > From: Colin Ian King > > The variable buffer_index is being initialized however this is never > read and later it is being reassigned to a new value. The initialization > is redundant and hence can be removed. > > Addresses-Coverity:

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-05-16 Thread Mike Marshall
Hi Colin... Thanks for the patch. Before I initialized buffer_index, Dan Williams sent in a warning that a particular error path could try to use ibuffer_index uninitialized. I could induce the problem he described with one of the xfstests resulting in a crashed kernel. I will try to refactor the

[PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-05-11 Thread Colin King
From: Colin Ian King The variable buffer_index is being initialized however this is never read and later it is being reassigned to a new value. The initialization is redundant and hence can be removed. Addresses-Coverity: ("Unused Value") Signed-off-by: Colin Ian King --- fs/orangefs/file.c |