Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp730033pxb; Sat, 21 Aug 2021 17:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqNH6dwjRJ5oWrJRYBOFdjSJ3MjVw4+B+F9WZC6k7VIxr1cdUCgFyEhbDKcU7zRze8Qjhg X-Received: by 2002:a17:907:104f:: with SMTP id oy15mr28799178ejb.46.1629590476044; Sat, 21 Aug 2021 17:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629590476; cv=none; d=google.com; s=arc-20160816; b=Ozat2Ekd2Hj+LeRJ12i8b//sdD8aiYs6nlZ2Ur3UWKotAyIsBrIsKvTTFU1tHG2JCx 2NWg5tg2IcuOuq7Dn7ZPTPtP/2+asilNxCslsdR41S2prbTPI6t+5lhjjnrFrkXvJYta cSsc/qhMxkRGqpjbyxunaznNQwC7c0w1zC0npTOhAQphnquv0z2PkQWwC+XF1IG0vrnH 9RBe2864yXl7PUFQz5AnLZwaOPsGqyJygod8NHVHpDKEg+/g3kxfKTJ31lEr8eApKYJI MYu4u/4kJSoa25x02M6bOGSp5OPEasgJuHeZ6tl6sT+kG0GfXY6xxlb5rhq7OZrecE8A wHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ze576013se8gTETJRjtdN0zpKGBJhk+U/2xWctJQRKI=; b=OpNfiwhmkMs0JnXs1pYw4sugZ1vFs5EBVXDtnyDX69vIvqhP/a8EmkfrVimvNCmw6Z OOEHH33CLoTHYbMgLHlnWhnuVGl2yyOiS+3grg+p8YgRfIhvrYQviRG4w1JbZuAsw9hi sdCbE+J7Mt70nBMk8ZABtb955VPozSwfFxsUtDBg+6jQ4ICju/8R8FKlN5gvHfUgeket UWlEw4pzf6X97w0oY++5wcTh9gcIkuqNffkS/fCS9WJuKcFAqK2qPcmrEmIMfBslOrIN xI1XrfHOp1yW0fYUUE8I5LO8jPqwg/0jilxoA08odzPGAu3bLGXSh+y+vyHsUC5l//aG UNbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=bhEJ0rA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si10800325ejn.202.2021.08.21.17.00.53; Sat, 21 Aug 2021 17:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=bhEJ0rA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231585AbhHUX7B (ORCPT + 99 others); Sat, 21 Aug 2021 19:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbhHUX7B (ORCPT ); Sat, 21 Aug 2021 19:59:01 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45CC1C061575 for ; Sat, 21 Aug 2021 16:58:21 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id n18so13023961pgm.12 for ; Sat, 21 Aug 2021 16:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ze576013se8gTETJRjtdN0zpKGBJhk+U/2xWctJQRKI=; b=bhEJ0rA28D8RxCMKQwAzZlwDOVlv3/Gn9NXMukx4btG5s4GTBms8IynaLMusHs16E3 dZXPvFwTUUgEZ+/WdmXyIHpi1jJ0EBZInIBIyKqspSlG8+43VKZ0jGrg2Q8ny/ZOFi5E RAsu/WoYzres5Pw/XQyzjaOz6IYDyBRR7p28VL7p87/IlsKtIyTr24v3p8k67GQqGMa+ mISQV18GQ/3yLbJOI0frMQjUMKXBogudyN2KaMWDSkdrtGuhb7ahPNNBxZkdnSspEpgG rC+I1JNQBq1198IMVNV8Wgy1pjdJ50MbDFiSsi4/qEHBcLEelb71SfSsV8fsEDYgaooy UadA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ze576013se8gTETJRjtdN0zpKGBJhk+U/2xWctJQRKI=; b=t2chslzH/RXJUZXHTIGI7oywI8wDRjk6Hr6CJQTLIutagBLeV2FWz1kVL3uBB685qo jEvSqitQwwW11WTUFq2Umf/6d0Bprdfpt13/Z972rByuYTDj3ctCMKR9oTwa7hp0HQo7 FOk5oi63egtCRxs/0qBPKegh5KTgYaEpVWIAMH88skwJ62uFCZz8rl3yQ9tB1Og2E8Ao AnQwlBirOvRWfb87rFhrZj8HiFk54a2lvpBbjxjy3l5IIm20Q7CTd+60mJZcgOLvCLnk 5o0t3fkTFQM6V4N9nrqWpBssy8BPLmcpkoNtjKvNCu8bTETV7/6dIVGUdAgKdLUOKEby NlQg== X-Gm-Message-State: AOAM5308Vj3BGEYacuyk5RWRm74QSb6x39oDrLihqVzRKL9QCbWd3NTA RFrXoyXpPSNC/7xWaqNnistkwGJ/h0p65Kobs57Whg== X-Received: by 2002:a62:5c6:0:b029:341:e0b1:a72c with SMTP id 189-20020a6205c60000b0290341e0b1a72cmr26837102pff.71.1629590300709; Sat, 21 Aug 2021 16:58:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Phillip Potter Date: Sun, 22 Aug 2021 00:58:10 +0100 Message-ID: Subject: Re: [PATCH] staging: r8188eu: core: remove condition with no effect To: Saurav Girepunje Cc: Larry Finger , Greg KH , linux-staging@lists.linux.dev, Linux Kernel Mailing List , saurav.girepunje@hotmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 21 Aug 2021 at 21:23, Saurav Girepunje wrote: > > Remove the condition with no effect (if == else) in rtw_led.c > file. > > Signed-off-by: Saurav Girepunje > --- > drivers/staging/r8188eu/core/rtw_led.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c > index 22d4df9c92a5..76cbd5f19f90 100644 > --- a/drivers/staging/r8188eu/core/rtw_led.c > +++ b/drivers/staging/r8188eu/core/rtw_led.c > @@ -148,10 +148,7 @@ static void SwLedBlink(struct LED_871x *pLed) > _set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL); > break; > case LED_BLINK_WPS: > - if (pLed->BlinkingLedState == RTW_LED_ON) > - _set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL); > - else > - _set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL); > + _set_timer(&(pLed->BlinkTimer), LED_BLINK_LONG_INTERVAL); > break; > default: > _set_timer(&(pLed->BlinkTimer), LED_BLINK_SLOWLY_INTERVAL); > -- > 2.30.2 > Thanks for this, looks good. Acked-by: Phillip Potter Regards, Phil