Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4286855pxf; Tue, 16 Mar 2021 09:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpci93kZl4xj0mPSEAMvDIgk68Bya/iPTgMs5NrFbk4K23C7dd/Rj0J05+IKurcIwnMZqr X-Received: by 2002:a17:907:7637:: with SMTP id jy23mr29608032ejc.12.1615913094947; Tue, 16 Mar 2021 09:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615913094; cv=none; d=google.com; s=arc-20160816; b=WH/n3Y2vdQiluERFuE1Y3dHB3QkYQNNx+bSW1lYorqHDP5vy6EHfFoWyIMSMTR0t68 iEUZmC0qZYQSpQAnDNigSZbE3xx54PjEOMh87u2NEIY4Un+festq5Ob1xmz/BKlOjxHN SJTWTROJFiUrWD2yVV9y/nckDwToM1IhEa8WUnYfPinZ7+pwy0JT6kqa7TQgqRxxUUgP N7wH6S0dqvOZ52B3m069UD18IFI+AX1FnLn2szkASAicHrf1T1lagmboFwTYe7NmQQ30 Nl+j7x1jgC1TtwTaGoUJRLC+bEKC6o/kea02A+17cb5SHK4dL5/RiCfryJIwrbH3xOjM rDBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Xkkz4qFDCYezzcD58zfpYKxKF1qCq8JreKSFWUuXhwI=; b=brRNHtmVxykLB5og9SgjkfrKVe0oif3C0jEJYvJuMsJSCGvK+PWDmkAnOoIViCvxww 1EMNq17ob5925Xuy2C6IppBw0KRfmZEePRYh7VAMAPmi9NNQd9U9G/QKAF1XHrdB1frG 3iawjzaU51C0rXCKeGhZ4npdC4HBdM8XHmmPvv5L9OwGPc99mD9375gS/BbYvA1MnIFX FzLRTaH0bQNCa5K62ubYLbMlGwXG4krb47ctryLNWombUGLBZPFs3DxrE1vAh7AFOJOJ KpJ2fMQz838AoqI5xHzFOCAL547k+gcaSQ72L98fLbl1lfLOQqAmBUOpia5bTt8I0oeA Eitw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NnYEhjWk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si13925069eja.266.2021.03.16.09.44.31; Tue, 16 Mar 2021 09:44:54 -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=@gmail.com header.s=20161025 header.b=NnYEhjWk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236859AbhCPPbn (ORCPT + 99 others); Tue, 16 Mar 2021 11:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236928AbhCPPbc (ORCPT ); Tue, 16 Mar 2021 11:31:32 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D142BC06174A for ; Tue, 16 Mar 2021 08:31:29 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id g8so10346063wmd.4 for ; Tue, 16 Mar 2021 08:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Xkkz4qFDCYezzcD58zfpYKxKF1qCq8JreKSFWUuXhwI=; b=NnYEhjWkh5mSf8B3jqCCngmLral9xAMV12mzGTVtb/SeS7aQ+6Mqnm6Rp1lkWd96fI 2Z3pUod1sHFcH/CAbqj6bXWHdihPXJQCPHaarljHtePY3wxqQR19DCK9o0HhUb6DRpir A/ijeOpkExxe2eAQF0zmWOaByPAsUKfRGnf+EEvnkDsAtPNOig/Cz8uYfI7nEF3NG8dk Ld4ZJ6gH+Yx/xluTe5d0oh3K66fD61XwoqjRR1adCcwf5sv2tGhoG1nBLVWmQjF2rjpa uHjKQ7GRxnmMGZl42CvIxy3K284qWkEc45zNNZBWtu4NVz1F2f/EJL+Iqgm5wvtSn8Ea WPoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Xkkz4qFDCYezzcD58zfpYKxKF1qCq8JreKSFWUuXhwI=; b=HikC7sI7p6hFYRO12s2R8t66/KEXvZWhheZY6FS9LA/drRc1Fxe5jG40MXNMonmglr MoaJotsMP8RizdJetCCu5hX/+neEASbnl9VWxgznln38kFO36a2kx4wXJlsXf77IQWLB PzvWZqqUHkM5klydOrRJlC2NwAzvTM3JTkJLnq3tGpju6CMrtPkaUe0PeSsrLHMpV3ZN m0uf2Kp64V9HCTbQWIZcGroRTnm1+LxWI+JVwIvsTLGUXaPH+sXZX1DJPj7CMIedl/JX d0gRO06uRg7uM1DgQ/oo+au5VD+grL/btrWB+jSrTzOQbkAvBUI8wT3MkGvfVrbCbqF3 M5fQ== X-Gm-Message-State: AOAM533RZE7tJsULL3bx2/g7x7gOIOixmJp+6zXgta53idgAJy2bhvxy NrqxzwrOyRqjg7R3Blt4AhQ= X-Received: by 2002:a1c:2683:: with SMTP id m125mr209385wmm.178.1615908688656; Tue, 16 Mar 2021 08:31:28 -0700 (PDT) Received: from agape.jhs ([5.171.72.71]) by smtp.gmail.com with ESMTPSA id h9sm2116330wmb.35.2021.03.16.08.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 08:31:28 -0700 (PDT) Date: Tue, 16 Mar 2021 16:31:25 +0100 From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/12] staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_VALIDATE_SSID Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove conditional code blocks checked by unused CONFIG_VALIDATE_SSID cleaning required in TODO file: find and remove code blocks guarded by never set CONFIG_FOO defines Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c index c9418bfb2a00..5929a7bf7db6 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c @@ -33,17 +33,6 @@ u8 rtw_validate_ssid(struct ndis_802_11_ssid *ssid) goto exit; } -#ifdef CONFIG_VALIDATE_SSID - for (i = 0; i < ssid->SsidLength; i++) { - /* wifi, printable ascii code must be supported */ - if (!((ssid->Ssid[i] >= 0x20) && (ssid->Ssid[i] <= 0x7e))) { - RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("ssid has non-printable ascii\n")); - ret = false; - break; - } - } -#endif /* CONFIG_VALIDATE_SSID */ - exit: return ret; } -- 2.20.1