From patchwork Wed Mar 14 12:45:04 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: 10282063 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 685CD602BD for ; Wed, 14 Mar 2018 12:45:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58787288BC for ; Wed, 14 Mar 2018 12:45:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C61F288DB; Wed, 14 Mar 2018 12:45:55 +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=ham 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 D20DD288BC for ; Wed, 14 Mar 2018 12:45:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbeCNMpx (ORCPT ); Wed, 14 Mar 2018 08:45:53 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:41833 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbeCNMpu (ORCPT ); Wed, 14 Mar 2018 08:45:50 -0400 Received: by mail-pg0-f65.google.com with SMTP id w17so1293794pgq.8; Wed, 14 Mar 2018 05:45:49 -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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=PC3PtolARuHswnRJ5SXJCtbM/VuCvSKZ+y4qhNJF7LvkK8sKGl+e5kZLXj8NCv2wuC UTEVBSTIdSAwnqqe/tLLNABY8f/Lpr81Jx0PN7SNEWlbv0FkEFEMlmQXjAwYGKlCh59G EQSo/Xuwszur6YYHRUCxU8Qkk2j+KCpbfO2+rhb0sSVX1WQoHDMkixEXO137tCADEYSN y+XzbEvDbaOO/wxN6r80RlP3IMn0sGn+L2vlWU+Qpo/LhuX7PCOUl6EOf8z41tVqzEKO 9Lrw5Cqw5+9SPWQPCeHyA9+fR25U8ESpXs38mpswwgkXdHXLt7JbuRT5d/X8z1iVTFBR 38mA== 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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=iTKlqV6743+dWBEwpmYkHotVCC4w+Vhr9+3hc1drvbMMz8ptSgkLruSupt0sJ6zLxc wtBFQRoG8Qc3yPeHSsdtfeTCIrKBzjBxQr9IogR+4hE0xocL6vUOyg2KPnSQA72GePUA uXxKO8hSHOi8nWzflTwKZRqzXQWfj1XFZ5XQNH7N9hCarxHucbnhXXevonON41VQSTIW MtWJ3As/bfMTQ9TNi4GwAAyxuqY2SDpzDqB8rJpknz/Qbvc789It8+hG72gqvjIodiGD p9FgfBVcnrhPPRI7aUoTOxsQckFr8+Gm7g//LzLJ1ftqtZFxIuTSEWaKFOgt/wTJalO7 DAtg== X-Gm-Message-State: AElRT7E5ShJmSPDFP5ozZJG4tDzKF5oB0FwM/Egv8Ba4AG5n62+yOYOQ Ir9zEsfv4GNB4/oU7M3x4HQ= X-Google-Smtp-Source: AG47ELsx6bzvELZbqMg4wajEuIN2gZwy1qXJH+BkWTxypa2M/mIFTuSo7VjvXdimBJ4f3YySs59+gQ== X-Received: by 10.101.101.205 with SMTP id y13mr3545652pgv.265.1521031549665; Wed, 14 Mar 2018 05:45:49 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 05:45:48 -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 6/7] staging: wilc1000: remove unwanted braces and correct code alignment Date: Wed, 14 Mar 2018 18:15:04 +0530 Message-Id: <31227bdc32df8b76d6a81ca224e1381020f681df.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-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);