Received: by 10.213.65.68 with SMTP id h4csp964686imn; Wed, 14 Mar 2018 05:47:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELuuFzrUk4pnnGWPKquSxuipxg62p4kWZHZLPK/nfxOUdf8Bvr7uGQMv8ioKn3ZdGJzQFIK7 X-Received: by 10.99.140.87 with SMTP id q23mr3608953pgn.258.1521031651271; Wed, 14 Mar 2018 05:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521031651; cv=none; d=google.com; s=arc-20160816; b=neFuRPpVnzWZB97hA3bJSOEeL6srP0vJ5b33B86KjOvAxqw4dNpnY+VHEE5gz4EpjD cVoJ4T2iciYzSzFmSmGNXfcHonKyQSRtL6SwbqzEUA4tijNbzvGns+5amLGvIF/t9/vP pcL9mt/BxhYF90axetx8GVZ3zKMzWzG7QuE3C/L0jr3KNrXILMVFTHMx4OwaO9mLBMDd 7d79+dplh7eLUTHiD1kkyu/evfBVtjxCWDByIbflAL4Vk1NH8U4dmkwF3+iqIIcwLq8E fIkwRaX9zUgdudgXYrmrq2HuqhHUB4+e27g729pxGYZVVXKVQnHcT/r8EkLfSx81lkY4 QKsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=jpoODxPib69Jxn/gFtf0O3xxd/wL5s1ouzJnWMsuAh9Qm5wAroYka0MZ9tb6JKGhg7 b6OfclVoi6wgpggxvWCP0wh4BJwHPebROpvMGwrVrAIhpPRElfWwlb9/IsUWvXuOSJ1K fHqJv36Bv5zLAzus7MGkSP5siO6WjGCNHGsYQxI4xX6uNj5Wg1Zl6TDWk1CqwbadJU+S fosM/nlmqaVkeYNrB0n9O7vaArHLEuJXZ2b/olXDZcPhjfwbh7tPYFN1UROHDtI3W8im Ls/S7U5OKuN5+7luI+c2WI38jKxEpNZSxru+CW2PrdnBzkWndPaRdbaRskzHZo3SnW61 obMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jgqt8EH4; 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 i133si1833335pgd.576.2018.03.14.05.47.00; Wed, 14 Mar 2018 05:47: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=jgqt8EH4; 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 S1752198AbeCNMpr (ORCPT + 99 others); Wed, 14 Mar 2018 08:45:47 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34451 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751470AbeCNMpo (ORCPT ); Wed, 14 Mar 2018 08:45:44 -0400 Received: by mail-pl0-f66.google.com with SMTP id u13-v6so1637195plq.1; Wed, 14 Mar 2018 05:45:44 -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:in-reply-to:references :in-reply-to:references; bh=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=jgqt8EH4SwcEiLhhFScl2oHo/diuIqlwVphk3A86fNApIxEJ1Vzq6c4XhuHDxPvb88 +pCDOZ4ecZ/8UCLFDRz1kr3w9YIjYS5pD7j06e4/dUJZ23mY/UU2L8rZISpiOwixUcpN gQeAj1Lu9lm91GzeV7FjrnIKVQsHiLuq+zK2md6Oo54fvgp9FOjwYTPrcetra/qfDHrG xd037yNv9QTohdjypWedYbDeHpOJ6eYSlAcuI5e4lwar0u/8WJqLjz7Rvd3v/jVrF9F6 5C3FEDvLtA4np4WqKXNpT+1QT40NRMB23OFLZDPpIyqsRLnsj0TZEpMSJhdFhSaxe3Ta 23ww== 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:in-reply-to :references:in-reply-to:references; bh=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=UVpa/2g+3oglmlSVgKks5QxwPaYuguwQf1bgKlu/nL2XtJksTCWzxrAlX0gd5SAJiL utLDu0FV7gb8dII04byYQzuP+5ofeBBECExd2M575YI4Rirkejxhsynhemrq64uFO4Fm MOkltP/oyEUdgK9V0hzYySCbUVWcf0dXRLdpAE3gJVDHTSqhco0B+Xfz4o3DXJcfKBri qm/TWAxwmHVqIddS9NQIAjOrK63jBVguwD+YD8RRe+qYKF1MUxXtEYisykzc169z99EK 3ZNqdLabGITI1Jj4oUXTy7FXI6UR1XYbbESDdYwpSHvgms8rjuk98/gbGBzEkMwl3Adl lFvQ== X-Gm-Message-State: AElRT7HeYNLqYr6kWYXP444l4sto5rBqHNHQ3ozg7cM0oy8jndai6Duj o7lkdYOVLh6B7It6QP+tPQs= X-Received: by 2002:a17:902:96a:: with SMTP id 97-v6mr3943565plm.183.1521031543963; Wed, 14 Mar 2018 05:45:43 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7142:9212:3d49:8166:4647:f07f]) by smtp.gmail.com with ESMTPSA id y14sm3999982pff.81.2018.03.14.05.45.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 05:45:42 -0700 (PDT) From: hariprasath.elango@gmail.com To: aditya.shankar@microchip.com, gregkh@linuxfoundation.org, ganesh.krishna@microchip.com Cc: hariprasath.elango@gmail.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] staging: wilc1000: replace switch statement by simple if condition Date: Wed, 14 Mar 2018 18:15:03 +0530 Message-Id: <2a46a5cc8ab69c1143c480bbac1f7e921011d982.1521030891.git.hariprasath.elango@gmail.com> X-Mailer: git-send-email 2.10.0.GIT In-Reply-To: References: In-Reply-To: References: 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 c901108..17bd762 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -772,14 +772,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 = pstrNetworkInfo->ch; -- 2.10.0.GIT