Received: by 10.213.65.68 with SMTP id h4csp268771imn; Tue, 13 Mar 2018 03:54:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELtg7y6tGte9ULO0VVWkgJ6519pqQ/DSpybW4WTzgJkoxsyolfT9Z/zO/UcJ/hvkw0Q/yBbg X-Received: by 10.99.173.79 with SMTP id y15mr134892pgo.136.1520938462796; Tue, 13 Mar 2018 03:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520938462; cv=none; d=google.com; s=arc-20160816; b=N41U3D1BiXCq1KLGUa0nyGad3JAqnHpj5l8+kjxKvLv7HahvkA/0p3Y99cC+n3Ek8z TpTravTVszbpnmaI6vKQFCKFG/Gz3APQLc7afmv/e/DaHGND/3Qx0q9nwFpwIHL5MJv1 Kr91qhaPH5xJFZ8XJxuK5V+ByRGZNh7qttCXEkym2gAAmxAeEhHGK28SLRcYjZWfa9e4 gHZkWOMfufK7xLaVEMJ7XfM7WkdjMD5tgbj9xrVo2Hq5wkP5TAwVjLqDa4yH9HOJMwsA uwULShkhVnlZgehBWM6M841krbijTwS4yk148qOHNq4df7NQ8JaURbTUO9lDf+XaUR7i LWDA== 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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=wWOjmfDdDxC0JFdw9KP+qDibE+Yt84kswUr12bVUEPayEwoi7z9+kCsOkRf/ntvi3a EDuqDVKttvVgO2kkePPnbFwpqNGKRUgarA5fRaoMgCvrEu7gqjpMCtWMUKPCqg5Mcs0U ooOQ2nRSoxedx0TxlqunDNFQWjEL2ruGMI2HIinnuQKHKS8lrp8bimCy7oqWlxrFHYaF 6E05XBS4GB7c/HajHmKiPPtk/5sDyLoxXGthdUzR9qEVCwjhXIUsugMy4xUbkoHBV5AK 72U5G2ervtHyD16y2lMZ3JEVIG752Jp85veQqAn+TLzwFIbhccGhOsf2lyFnRAs/IzjU 4VwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nR6Ue8G/; 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 a63-v6si74271pla.44.2018.03.13.03.54.08; Tue, 13 Mar 2018 03:54:22 -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=nR6Ue8G/; 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 S932756AbeCMKxC (ORCPT + 99 others); Tue, 13 Mar 2018 06:53:02 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35957 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932514AbeCMKxA (ORCPT ); Tue, 13 Mar 2018 06:53:00 -0400 Received: by mail-pl0-f67.google.com with SMTP id 61-v6so11076969plf.3; Tue, 13 Mar 2018 03:53:00 -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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=nR6Ue8G/y0fEoOeYwHSFFNnMJzAHLVCzCTjrPb73XwuUEArBOJyegVY4F0XzfB/nhg G512Tvv23OFCSLcYD3HDABtiG8dei2I1bjBhZZhw85Uy6zCy6GxunedPjo4xs+gH6qgl eh/aG6N23K1raKIq3PWTsC3lxVMbwmWaaRGVb1Xj3Q43euy8muQXfMzQYK8HvA+B9mOO HFZu40vcbiH5xHQZkiaXGA2A8RlqbjUlomPRjGFFoSlXMQw3h83e26K+rxqjzYPn5FH4 Co99VYUNyiQ8LR05pFLDgjso0TkxORw0R6w85qXL4fi0gcwdF6w8XWoXIXg1g+wawj1v XqvA== 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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=oL9nsGtDdznT676iK1pqp4gr7SYEthV7o3WZ3yP8GaV45D3X47iDzO6CTZnEQGK/v8 Jq33FzStnwKWKlBEbIRo6WY4ngsOUNfw9bwsxC6kARVSVi0yY5z+D02aU603KuT9LTGS CikPJaTH3musu3hQGc274myR6/bg7v+w40s1AOtXckPFDigz34IlFidqZKxped6UxoLx NapG5gm/BZY//UgwNS4DEi0T4lkMgXhIkuTLPmwvzWsgl7lH75JXgwsnpPW5RIJOZibm KOAJczGDonTGN8i9WeTxrMOfXTl9/FAnPafS5W6vz50cRhDomuxPNB1pJNcXAJfqXDaL db2A== X-Gm-Message-State: AElRT7HryUVueMiCHzw1QbJkHW9b4VxM2kbbdjxOW1WXfMgvnVfE03Dd q4rcbX6nMO9pdclsX3xljOg= X-Received: by 2002:a17:902:d03:: with SMTP id 3-v6mr119148plu.245.1520938380368; Tue, 13 Mar 2018 03:53:00 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714b:73d3:f099:e200:ca11:baf8]) by smtp.gmail.com with ESMTPSA id h26sm241920pgv.22.2018.03.13.03.52.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 03:52:59 -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: remove unwanted braces and correct code alignment Date: Tue, 13 Mar 2018 16:22:38 +0530 Message-Id: <20180313105238.12838-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 Remove the unwated brace and corrected the code block alignment accordingly Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/host_interface.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index a4ee175..0fac8e1 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -984,20 +984,19 @@ static s32 handle_connect(struct wilc_vif *vif, wid_list[wid_cnt].val = (s8 *)(&(dummyval)); wid_cnt++; - { - wid_list[wid_cnt].id = WID_INFO_ELEMENT_ASSOCIATE; - wid_list[wid_cnt].type = WID_BIN_DATA; - wid_list[wid_cnt].val = hif_drv->usr_conn_req.ies; - wid_list[wid_cnt].size = hif_drv->usr_conn_req.ies_len; - wid_cnt++; - - if (memcmp("DIRECT-", pstrHostIFconnectAttr->ssid, 7)) { - info_element_size = hif_drv->usr_conn_req.ies_len; - info_element = kmalloc(info_element_size, GFP_KERNEL); - memcpy(info_element, hif_drv->usr_conn_req.ies, - info_element_size); - } + wid_list[wid_cnt].id = WID_INFO_ELEMENT_ASSOCIATE; + wid_list[wid_cnt].type = WID_BIN_DATA; + wid_list[wid_cnt].val = hif_drv->usr_conn_req.ies; + wid_list[wid_cnt].size = hif_drv->usr_conn_req.ies_len; + wid_cnt++; + + if (memcmp("DIRECT-", pstrHostIFconnectAttr->ssid, 7)) { + info_element_size = hif_drv->usr_conn_req.ies_len; + info_element = kmalloc(info_element_size, GFP_KERNEL); + memcpy(info_element, hif_drv->usr_conn_req.ies, + info_element_size); } + wid_list[wid_cnt].id = (u16)WID_11I_MODE; wid_list[wid_cnt].type = WID_CHAR; wid_list[wid_cnt].size = sizeof(char); -- 2.10.0.GIT