Received: by 10.213.65.68 with SMTP id h4csp249769imn; Tue, 13 Mar 2018 03:09:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELu3rMEqSwc/rasE+XvxQOwSEU0cxNrHTht/Z9FQC0I9H1q1WU26iBVVWS50AULxvH/MgOpv X-Received: by 2002:a17:902:8545:: with SMTP id d5-v6mr50512plo.20.1520935799497; Tue, 13 Mar 2018 03:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520935799; cv=none; d=google.com; s=arc-20160816; b=Ou1nA3YV5XJqJfJN7eiFZ7+qVUyrv7Uxw4uTk2X5Mlk2O55dpQ2UeLHe6tKmFajG0j ebuYU6z2OocOCa6QuiXJsq+03hUWFnZXGk7q8ukPywMEtseEyGn3+KdBvbRRKM0rEOVh ouqo0gUEOf8xVPp4y+D+Qr56qsOgXrwxmeRfV+FrgrCyzuAfuYSInTriQV8i63oAxp91 NInouh2HLQ59nzRg0msASH5JOTGjoHkCOJBblXT3JxShYGyvsIh8y2HTHv8M0grVU9D5 AvvOGlYtYgvzk5xYD/7q7cPRcQ0e6wfflpffnLFpDzi39wMOJjRytUl8SbHsw3/HmPxy lvBA== 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=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=RA9x9dZz9RMhIUbmITVLyQV7SKso6vfGep56psG/BuZ9PRCjmKOXbs5KdnoU+ouj2d bJBF3QOYAqjLSAEzLPdaT2PaAUvVPJ769wRYR9UFtHDlHGhuEKr9Z5Lu/1G/tcCtoiAE 1JCZ3THfZfti3brGmqXrBg0puDB1HwBph2V/9LS7ywIp2lJGjc+SkRtJ/gtCshf5vSql EomtFmeVrteTmY7y+eazrbtiqJInqnQOoNvAH5oWGVkC1sF14b69vXGPqKzQ4mSJ7/ax HzB64pxij7j8pFIyBwzC4IzFBzSxRyvo5Y+/e2e+/eCwXnLakwKnnb8FKQVUxoyyJvxI TrGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BzU/StJ8; 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 q9si11269pgn.210.2018.03.13.03.09.45; Tue, 13 Mar 2018 03:09:59 -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=BzU/StJ8; 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 S932593AbeCMKIT (ORCPT + 99 others); Tue, 13 Mar 2018 06:08:19 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:34079 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932489AbeCMKIR (ORCPT ); Tue, 13 Mar 2018 06:08:17 -0400 Received: by mail-io0-f195.google.com with SMTP id e7so15069666ioj.1; Tue, 13 Mar 2018 03:08:17 -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=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=BzU/StJ8ynP/xjXaqHhsFVNWvptq6ccR+wwl7CF5FJgP7PJZ/zjbiQ6Rh1QMlesG0Y 44dlDtqQeKSTbh9Mfy08BoBe4ODb0urS60QThW7GJJWUeGqVbuFS/AaR4ieKhEyL8bXb DjPCknvVPgpXL9tvZSEPvxEf3/aFvS8Jx5D5D+8GjC1tg1/cPpbBYex6XLandL0cIvTj 0o1T8Qmneul54tR5gqA0FMJ9+5RAMv/8XZe7YTf/UsX0Sv1yn+Low4DfPcZjcGec2Xzg zXsCAcBfWzvuuUDV+/6wZ+Zrvj9hzdkbSrM1NE8m/MwXCt+a3qXyWbakoIMHu8xt2QRE 0QBw== 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=VZgHMeKicKKpQZkDXSH8yuDSqiLAAXmYmeNMv/lsHZI=; b=Zi5V9qmspjAUqrNKiVBEpR9FzqkMQlMjiVx2CKSY/TNeFU7E89cIz2OXwGJ1cCYqNx ckvOguyL2cENlzVkDsgQCy2vEcOI7Zb7N6k3zKumXvJFJ6YnhlsrgiSc2fzoi1Bk6+08 87Qu7gnVqoxLI4z7nh1IZXEH8insBfN33C2OnUAe/Dhtqxiw6/1JKYRVQsPZz44OZnU+ pqIBxgyg/PlUtKxrIns69h07Ex5uZtdk4WEs6L/myy4kI3bZbaA4SlNqYdrvgYmJGfX3 KZFtPCcd24DQNN9TUWq6X3qHcDvlmumgBP3dMR9Y/ThtsyennuheF9jTcXTUcJUwI9/N MpUA== X-Gm-Message-State: AElRT7HmGTlKgCa9fkvnQX3yonqsV0tyj2h8SemL/1TUhVwrU9BaiSnZ IJJkZw1GGlf108TOsWytOt9Tr4mV X-Received: by 10.107.48.209 with SMTP id w200mr35614iow.128.1520935697240; Tue, 13 Mar 2018 03:08:17 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714b:73d3:f099:e200:ca11:baf8]) by smtp.gmail.com with ESMTPSA id u77sm221238ita.30.2018.03.13.03.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 03:08:16 -0700 (PDT) From: hariprasath.elango@gmail.com To: aditya.shankar@microchip.com, ganesh.krishna@microchip.com Cc: hariprasath.elango@gmail.com, Greg Kroah-Hartman , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: wilc1000: replace switch statement by simple if condition Date: Tue, 13 Mar 2018 15:37:51 +0530 Message-Id: <20180313100752.11593-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 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