Received: by 10.213.65.68 with SMTP id h4csp329287imn; Tue, 20 Mar 2018 04:45:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELujNVGUzWUGX8hVF6zJAu2mmseJYFBpyP2vQc1DymqCeWmEJYXz7UKhF48wVVI2vrIxY9Xu X-Received: by 2002:a17:902:309:: with SMTP id 9-v6mr16591975pld.63.1521546331378; Tue, 20 Mar 2018 04:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521546331; cv=none; d=google.com; s=arc-20160816; b=wW6h5fA8ewT2WEUNXeOXI0FalHqeUhuU/JVHDS2A+m22aktjWxp/b7my1pNugq9PvG jKDd+9VafJFORLVKj0Mkzyqf80DY/j902PZpGZ5c8jaoFQ6u2l1TqqA4f8dEpTNh7yS7 r3f5fTSrJwvM3VAp38RKhRYOhaPAPFMvC813RE4JEmZ1RFPsdDigwMBDLK2/D5W+AbCg icNKSZKi8JEBaWgmqDueFGRYhPnsPYh+iHZjx1nV1ztw3X9xeb5OUVya8Q5wXCBly6B0 NqVyQ6SCpveIQOLS3ZHdnq1pFtX8wiJEG8xao1GIvV7LGSuDeees8bwjoslvEOttycCz 9QfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=mvc/czDxJoE3A4GK7VdQ7LPGsKxQrxAVJDSLk2ytUWk=; b=ttLSmx/4TtUFAvTw0imzVWY0U0YQ33vYDU5jQQjUngg+RH7DAWBi7yPMrbc9VL5km9 oNOq7SiNrApyJZj+n1Gmwk8RuYXJW/FKw3egD7zjk8/hdP2PaZKrcDHR9OUYHCkINlwR l8UuOj+IZCeb82lRM37Qs8ERiNZPrTtwe9GID9ULz9Pm8OADSQiJ93SzJgpX/8/t2vwB OFxOzeky+6BdzQ3goMuyLGqI85F/QjjgWtUfyz65urobX3EzkIJWbMWHJwwxs/bLPueQ gGEbQQdG4poYBd15bQilV0rtIPD9QNCsJgqBmL87SBFJ8tfRx769Imo1vyMboNyhvisz PJ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ezmCb7Bz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id k62si1102236pgd.39.2018.03.20.04.45.17; Tue, 20 Mar 2018 04:45:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ezmCb7Bz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752861AbeCTLoQ (ORCPT + 99 others); Tue, 20 Mar 2018 07:44:16 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:40628 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752700AbeCTLoN (ORCPT ); Tue, 20 Mar 2018 07:44:13 -0400 Received: by mail-pl0-f67.google.com with SMTP id x4-v6so794729pln.7; Tue, 20 Mar 2018 04:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mvc/czDxJoE3A4GK7VdQ7LPGsKxQrxAVJDSLk2ytUWk=; b=ezmCb7BzyBDCnddGZ8/wyEFu0f5/XP3z0YHMFwwHakFGHmEMdRsn1bYvY6Sx6spknX eVGHdL+0sdorBMOXZUNvTw8+7TMjoAC3NA28RRKvnNH9GSwv6VYI6ZFCkFO4FTqef/0s i03txxTm901Y+ZDoKA01BAo+XZOKeljgv4p/N5r2z0z7VyRbJhpZ3dIgBq94iGPjrZ6O SfdYgECRGU7nRA7B74V1dRfv5WFQiqGU8rIM6pGyAsBHnqByqaJPIQYGApQ9+42z4+9g slhV4FPpasdxMy32pgaOdGEYkh0RgIMstdyq6i8yeN5JH5plTF7EgIqf0Vtbj2XmMBzZ FYUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mvc/czDxJoE3A4GK7VdQ7LPGsKxQrxAVJDSLk2ytUWk=; b=rPiK7ll/7FN6WIpo/8fJ62lsg3u2+oJzW8DW2LMfvfZy9LVPw9zQM1/0+d+OIZmqjP HIkbVdpDXLaLMXQb+GuraDC5D0R+w0/uIMlaVLBdAzM39uNDXQzyQ51bCcDHDOiGtb9l X/XriZ+wG0wQJUrGBfm6zya0Q7f2ST0OLgu7GD74EQl7TVeRXvJdid9q/qzedZ6jiVFd 1LDXjGKrGzp6WTU7RnZ5402MUCF60TCEmfbiMsIXKYByXXgXNXenC8EcThf8Jil0NDtZ obqX+sZ/wZ4gJJy/cAGMDHonZDozP/syj6LkZH3iDi+gS3GC6xJEVYwrlSxtD5owQ84m P3Mw== X-Gm-Message-State: AElRT7FePVNAMcmk7/ZVelU1W75M8YIej9fX41jMz8MMOThcJwA9WBpl EqSbrW3W0Wn7MKxvYXRkkyg= X-Received: by 2002:a17:902:7290:: with SMTP id d16-v6mr16094016pll.31.1521546252935; Tue, 20 Mar 2018 04:44:12 -0700 (PDT) Received: from hariprasath.domain.name ([122.165.96.181]) by smtp.gmail.com with ESMTPSA id t16sm1729184pgu.63.2018.03.20.04.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 04:44:11 -0700 (PDT) From: hariprasath.elango@gmail.com To: aditya.shankar@microchip.com, gregkh@linuxfoundation.org, ganesh.krishna@microchip.com, dan.carpenter@oracle.com Cc: gehariprasath@gmail.com, HariPrasath Elango , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCHv2] staging: wilc1000: replace switch statement by simple if condition Date: Tue, 20 Mar 2018 17:13:31 +0530 Message-Id: <20180320114331.4084-1-hariprasath.elango@gmail.com> X-Mailer: git-send-email 2.10.0.GIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: HariPrasath Elango In this case,there is only a single switch case statement.So replacing by a simple if condition Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 9d8d5d0..730d64f 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -776,14 +776,8 @@ static int connect(struct wiphy *wiphy, struct net_device *dev, } if (sme->crypto.n_akm_suites) { - switch (sme->crypto.akm_suites[0]) { - case WLAN_AKM_SUITE_8021X: + if (sme->crypto.akm_suites[0] == WLAN_AKM_SUITE_8021X) auth_type = IEEE8021; - break; - - default: - break; - } } curr_channel = nw_info->ch; -- 2.10.0.GIT