Received: by 10.213.65.68 with SMTP id h4csp964481imn; Wed, 14 Mar 2018 05:47:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELsmxjttiZyIaYDGaiwzhrRdaAaQgZxGtin4JuiDvwWFyICMvmWc0i1lZvUFhX3Ll/iBo9PM X-Received: by 10.98.77.194 with SMTP id a185mr4184834pfb.123.1521031626420; Wed, 14 Mar 2018 05:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521031626; cv=none; d=google.com; s=arc-20160816; b=0sK2wv7lBpQ1csjc0KEzLRNdGmrmXU1STKMRfvXpbqK6aa3x+KZ0hEHa2Gx+njeLNz 6rKM5tQw3Mw/PixY2AyI15GC2Zom8QwUDTufOkX2tIm8t0U6L0BdUKRxc3/5NnsYLPrJ e68wvnuc2bCKM5gUJofv8kD0tO6hFatXt9u7JzXEnwzdisgbv8dzgVVZZnnNdB5c2s+C QEXWXgRVWdisKY7sVrZUdm4OiePQmTDPsnvKEfZjQB/33M4OLOvFJ7TiUoXfP0Vg/cJ0 OaLiqjXB1gu/tyZdGkEOXffAjQODl2U4MpmXH1G4YWIzWKu6C2BQQd8uL/JC3tMg+woG qD7Q== 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=fyW//BANY6Gr+YwIpZUsHE6oRzHJz8UyDQSRn+NMvQE=; b=Qx0yajZ/2aCwEPV7hoHCgHEM/jWlFE9nsSG10Xn2L6mbyXkR5Ug6weMmpR44od4Nmh rRJ8RXWAhZRxb7rsSGTwwj5SuG0qKFzulCApJC5c3W9ivw2ij8+dYf5sp3kHaEmyfISG H4fi1d+TClR8FLlRgB/YDejkPDYnXuYiwNXOjtZ212qBpkys6hFwyS3hh3yk7YDuD9dK tuAWYXoB6XX7Noy91kB7rhLU+bc0msyWsTCMiTw66r5a5frcdIS2kH5tHDSG4NCnHEfT im5I5DfCniHcWXOO2Szl/X3OIpbyQmDV7OpXPi0cvPLwW7STZOthylhrQ5km6BbeiqZX i+nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PC3PtolA; 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 12si2051047pfi.351.2018.03.14.05.46.47; Wed, 14 Mar 2018 05:47:06 -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=PC3PtolA; 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 S1752242AbeCNMpy (ORCPT + 99 others); Wed, 14 Mar 2018 08:45:54 -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-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-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