From patchwork Tue Mar 13 10:52:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hariprasath.elango@gmail.com X-Patchwork-Id: 10278195 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3A5CB602BD for ; Tue, 13 Mar 2018 10:53:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C5A528EBC for ; Tue, 13 Mar 2018 10:53:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20E7028F45; Tue, 13 Mar 2018 10:53:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF0B828EBC for ; Tue, 13 Mar 2018 10:53:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932697AbeCMKxC (ORCPT ); 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-Google-Smtp-Source: AG47ELvNdsIwJjfQUE8kA3/pp52imDdasnXK6OoyH3KGa7sPxer9GRPGrCfR/IZ6T+cNrAkG4WDVcw== 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);