mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
Commit2cbbb579bc("regmap: Add the LZO cache support") introduced 'blksize' in regcache_lzo_read() and regcache_lzo_write(), that is set but not used. Compiling with W=1 gives the following warnings, fix them. drivers/base/regmap/regcache-lzo.c: In function ‘regcache_lzo_read’: drivers/base/regmap/regcache-lzo.c:239:9: warning: variable ‘blksize’ set but not used [-Wunused-but-set-variable] size_t blksize, tmp_dst_len; ^ drivers/base/regmap/regcache-lzo.c: In function ‘regcache_lzo_write’: drivers/base/regmap/regcache-lzo.c:278:9: warning: variable ‘blksize’ set but not used [-Wunused-but-set-variable] size_t blksize, tmp_dst_len; ^ These are harmless warnings and are only being fixed to reduce the noise with W=1 in the kernel. Fixes:2cbbb579bc("regmap: Add the LZO cache support") Cc: Dimitris Papastamos <[email protected]> Cc: Mark Brown <[email protected]> Signed-off-by: Kirtika Ruchandani <[email protected]> Signed-off-by: Mark Brown <[email protected]>