Re: [PATCH net] Bluetooth: SMP: remove set but not used variable 'smp'
From: Marcel Holtmann
Date: Thu Sep 26 2019 - 02:34:37 EST
Hi Yue,
> On Sep 23, 2019, at 16:05, YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> net/bluetooth/smp.c: In function 'smp_irk_matches':
> net/bluetooth/smp.c:505:18: warning:
> variable 'smp' set but not used [-Wunused-but-set-variable]
>
> net/bluetooth/smp.c: In function 'smp_generate_rpa':
> net/bluetooth/smp.c:526:18: warning:
> variable 'smp' set but not used [-Wunused-but-set-variable]
>
> It is not used since commit 28a220aac596 ("bluetooth: switch
> to AES library")
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> net/bluetooth/smp.c | 6 ------
> 1 file changed, 6 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel