• Gustavo A. R. Silva's avatar
    mtd: cfi_util: Fix unreachable code issue · 1eb5f4a3
    Gustavo A. R. Silva authored
    Fix the following warning:
    
    drivers/mtd/chips/cfi_util.c:112:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]
                       fallthrough;
                       ^
       include/linux/compiler_attributes.h:210:41: note: expanded from macro 'fallthrough'
       # define fallthrough                    __attribute__((__fallthrough__))
                                               ^
       drivers/mtd/chips/cfi_util.c:168:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]
                       fallthrough;
                       ^
       include/linux/compiler_attributes.h:210:41: note: expanded from macro 'fallthrough'
       # define fallthrough                    __attribute__((__fallthrough__))
    
    by placing the fallthrough; statement inside ifdeffery.
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
    1eb5f4a3
cfi_util.c 11.3 KB