mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
GFS2: Fix compiler warning from previous patch
This shouldn't really be required, but gcc can't tell that "al" is only accessed when initialised. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
bf97b6734e
commit
d594845106
@ -615,7 +615,7 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
unsigned int data_blocks = 0, ind_blocks = 0, rblocks;
|
unsigned int data_blocks = 0, ind_blocks = 0, rblocks;
|
||||||
int alloc_required;
|
int alloc_required;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
struct gfs2_alloc *al;
|
struct gfs2_alloc *al = NULL;
|
||||||
pgoff_t index = pos >> PAGE_CACHE_SHIFT;
|
pgoff_t index = pos >> PAGE_CACHE_SHIFT;
|
||||||
unsigned from = pos & (PAGE_CACHE_SIZE - 1);
|
unsigned from = pos & (PAGE_CACHE_SIZE - 1);
|
||||||
unsigned to = from + len;
|
unsigned to = from + len;
|
||||||
|
Loading…
Reference in New Issue
Block a user