Re: [PATCH] mtd: block2mtd: remove redundant initialization of 'bdev'

2018-03-18 Thread Boris Brezillon
On Sat, 20 Jan 2018 22:09:34 + Colin King wrote: > From: Colin Ian King > > Pointer bdev is being initialized however this value is never > read as bdev is assigned an updated value from the returned > call to blkdev_get_by_path. Remove the redundant assignment. > > Cleans up clang warnin

[PATCH] mtd: block2mtd: remove redundant initialization of 'bdev'

2018-01-20 Thread Colin King
From: Colin Ian King Pointer bdev is being initialized however this value is never read as bdev is assigned an updated value from the returned call to blkdev_get_by_path. Remove the redundant assignment. Cleans up clang warning: drivers/mtd/devices/block2mtd.c:228:23: warning: Value stored to '