Use pregistrypriv->wifi_spec directly instead of defining a temporary variable. Signed-off-by: Martin Kaiser <martin@xxxxxxxxx> --- drivers/staging/r8188eu/hal/usb_halinit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index e1d56370a471..b63f5bb21017 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -160,9 +160,8 @@ static void _InitQueueReservedPage(struct adapter *Adapter) u32 numPubQ; u32 value32; u8 value8; - bool bWiFiConfig = pregistrypriv->wifi_spec; - if (bWiFiConfig) { + if (pregistrypriv->wifi_spec) { if (haldata->OutEpQueueSel & TX_SELE_HQ) numHQ = 0x29; -- 2.30.2