Received: by 10.213.65.68 with SMTP id h4csp354183imn; Tue, 20 Mar 2018 05:18:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELsCen0P6ursZ+LDhMWLF4+f9M4y1W1i+kqL/VjJKpuNqOUWSwmtXoyKU7DETnrUAMQ72767 X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr16390922plb.170.1521548317211; Tue, 20 Mar 2018 05:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521548317; cv=none; d=google.com; s=arc-20160816; b=TYkuTejCCr0aLP5FZvHQZt2cx4ussYphQWnnMJ4HdiiJbDyIZKJvGbfmbyxqoeg4ps tNH0OKidnLgIscT5ThORdMYx+Nj/2jeAj8Ibm4WckOGARvhxjo5jjQOnmSz9QsXr9tIG UwewhOJRhqD4Dk28M50aIo/IHCeNCk59zvk54xaTPyYAq56tZXAV7Zub7IYW13bU1Gb3 gMlpISJH8V+brQ3b7iQQIMLB65/ZrFpnvSc2pup8valgKOUdAkksJtn1vrDt8Bjpydqi hWHRKF880Q/wZfgz3qtn6LasOOMr77DkA2ospNVtiShmtghVePYZMbfu3aLh32dXW9zf Vz9g== 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=mTJvOmOexi8vszLArQCP0OVRnluZ+EXpDBL4KV/igxY=; b=oGGM/EeVHNOy7ZtZQg+No9t7J0MThcwHUgb24428hH8V3jrsw+A6urmbdtEMm3gH2V HM8kF4v+RNuvhbO6UieQuHVaTtw37gBlgG91C+Lo1Dr4+ZBSyXkQuIzbzL72Uo+XDUkQ TpUyYJfr6MMUPO8RuVGZaVValxaMuOcA1IuoFv3ZFpyAh5F08sJ/G+9l4m00SUJs5Mxe 76osrYlQIM+KWllFbA3BtPVh6r/BYq8rQGEKIGSZvFVUDgCP8D1gaAiV3z83FIZsR9Pj MAT2HcVoTyCG4w2w1cJooYZvgXZ3Flvtj6Qlm6T9o/ZzVqeAnhR/qw/v9hkB6xXdIFVi s+jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iX4CdoE4; 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 q3si1108557pgc.197.2018.03.20.05.18.22; Tue, 20 Mar 2018 05:18:37 -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=iX4CdoE4; 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 S1752898AbeCTMR2 (ORCPT + 99 others); Tue, 20 Mar 2018 08:17:28 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:42903 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbeCTMR1 (ORCPT ); Tue, 20 Mar 2018 08:17:27 -0400 Received: by mail-pl0-f65.google.com with SMTP id w15-v6so840567plq.9; Tue, 20 Mar 2018 05:17:27 -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=mTJvOmOexi8vszLArQCP0OVRnluZ+EXpDBL4KV/igxY=; b=iX4CdoE4qtauDDmRmg3IDh/IbKvvYSu7n+wzUn2gcgnVy8nuapa74fmNBPI6J6WJ8H ChOwWs18/+2v0J4gxovHtOc5mFXg0QzNffAPbrMFEhfTKh01PIpHtTt4OYu+n4Q6k8uy sIegGe92o+BDp1ISS1k1AbPHgd9ADW+PHgk0xhWQVKlQ2D4eX6C6OvRsPtl4mpcLoOLS CqSYJhti8t8ZjBZ34+oPEgcVTMZ1u0qXf8raIxpz9r0RNLLXFr5fbAM0zCWb1CBnsYj1 +yxm3AAZNk+2WgF6bM0cp/dTIg5kN8t8Zs5uloP27cD3zA4Exqg3a4AHnszew7WuGhHy UqKg== 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=mTJvOmOexi8vszLArQCP0OVRnluZ+EXpDBL4KV/igxY=; b=gdzUoWMo+d4yMHf0Pu9YEd0Oeic66qS2Wqout38Hgkuekh/VYRDQ4IUAEpJhViRcNv AlnPxM90joUzyfU3PlfGrSFie8h1LNXOgxzikcHAA7NpEDR36LfofesSs4nozGcA3tmA 4polQ/E9/VTiMaOYw9RNaeUAU091IpyZ7EZ2EfJRe7fAUzns0ncksp6O8WLvN/aBYXFK 2oURklu60xDOz6fMStiD1MKFwkmpgSVRsbl4USm1I5yM0mlHqeVeIuxdqtNbG+F3Ctp/ yWK4PRmUW4d7tW0mYre0XggqkGUsxQj4a3KLlAvn33AoJy0LPRqVz+J2lYNYbnsVkpYl 3vdw== X-Gm-Message-State: AElRT7E69rZPjX3kIhanQySIKc2XewiVKBvGyB18pP40jEXujI5bv9Ub qPI9RGOZIYeQLcD50jpEY8k= X-Received: by 2002:a17:902:e5:: with SMTP id a92-v6mr16046373pla.26.1521548246885; Tue, 20 Mar 2018 05:17:26 -0700 (PDT) Received: from hariprasath.domain.name ([122.165.96.181]) by smtp.gmail.com with ESMTPSA id o6sm2656923pgv.82.2018.03.20.05.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 05:17:25 -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: [PATCHv3] staging: wilc1000: replace switch statement by simple if condition Date: Tue, 20 Mar 2018 17:44:49 +0530 Message-Id: <20180320121450.4599-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 --- changes since v3: *rebase on latest code *missed revision history in v2 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