Re: [PATCH] ubi: fastmap: clean up the initialization of pointer p

2017-10-30 Thread Boris Brezillon
On Sun, 29 Oct 2017 13:14:26 + Colin King wrote: > From: Colin Ian King > > The pointer p is being initialized with one value and a few lines > later being set to a newer replacement value. Clean up the code by > using the latter assignment to p as the initial value. Cleans up > clang warni

[PATCH] ubi: fastmap: clean up the initialization of pointer p

2017-10-29 Thread Colin King
From: Colin Ian King The pointer p is being initialized with one value and a few lines later being set to a newer replacement value. Clean up the code by using the latter assignment to p as the initial value. Cleans up clang warning: drivers/mtd/ubi/fastmap.c:217:19: warning: Value stored to 'p'