]> git.baikalelectronics.ru Git - kernel.git/commit
zonefs: Fix compilation warning
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 20 Jul 2020 08:52:52 +0000 (17:52 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Mon, 20 Jul 2020 08:57:50 +0000 (17:57 +0900)
commit21551d4283768e2ca929929d8829104ff2dc5be4
tree90f0d7cf5d7c99404e1ee3730c01b02804da49e0
parent7a09afc8eee4fec21bb06959d2735f0a85f15aea
zonefs: Fix compilation warning

Avoid the compilation warning "Variable 'ret' is reassigned a value
before the old one has been used." in zonefs_create_zgroup() by setting
ret for the error path only if an error happens.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c