From patchwork Fri Nov 13 21:59:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Panayiotis Tembriotis X-Patchwork-Id: 7615251 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B384EBF90C for ; Fri, 13 Nov 2015 22:00:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D4AD62083F for ; Fri, 13 Nov 2015 22:00:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EDBBD2083A for ; Fri, 13 Nov 2015 22:00:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752974AbbKMWA0 (ORCPT ); Fri, 13 Nov 2015 17:00:26 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:35827 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbbKMWAX (ORCPT ); Fri, 13 Nov 2015 17:00:23 -0500 Received: by wmdw130 with SMTP id w130so46163873wmd.0 for ; Fri, 13 Nov 2015 14:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=AqeOdSmYcRQHBTPs1gv7JBvgzyc4u82NJITKsAEzvsg=; b=mPN2NZon/xVHDU0Lh+4aY2v0DY19asfUmYJaF5zzM6dXpi82+8vZI0oWY55Fht5AHv PylHlyP+sMpNruc0aJCYpKJko4NeshhBA0EYay+OUv4zcKKXie9PeHrCTqEGKGK5+hbb K2s7iK6lV/u5U43Y/zs501ubA+eMa0IA/ouBka67SEfaXB2MIrV3hbB9uQ/G/ROOLSNf FkEvuqDqXzbK20wN8GGEoyQ+U3bAKniS+pZ1tzPqOZiuXxFidsqPhar6fTTSOWtmDF9u to8EzGPQTvMqZWawTWLS+A7v6bMySrAuudcX80ImCWo8rLjhKkfXlUSB79EDonyctejv 69vA== X-Received: by 10.28.61.213 with SMTP id k204mr6617578wma.5.1447452022641; Fri, 13 Nov 2015 14:00:22 -0800 (PST) Received: from localhost (213-32-137.netrun.cytanet.com.cy. [213.7.32.137]) by smtp.gmail.com with ESMTPSA id q77sm4603539wmd.22.2015.11.13.14.00.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2015 14:00:21 -0800 (PST) From: Panayiotis Tembriotis To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, Panayiotis Tembriotis Subject: [PATCH] staging: wilc1000: remove new line around else and braces Date: Fri, 13 Nov 2015 23:59:47 +0200 Message-Id: <1447451987-5447-1-git-send-email-panayiotis.tembriotis@gmail.com> X-Mailer: git-send-email 2.6.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove excess new line characters as suggested by checkpatch.pl: ERROR: else should follow close brace '}' ERROR: that open brace { should be on the previous line Signed-off-by: Panayiotis Tembriotis --- drivers/staging/wilc1000/wilc_wlan.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index c02665747705..9966ac8d7ceb 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1056,15 +1056,13 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *pu32TxqCount) memcpy(&txb[offset], &header, 4); if (tqe->type == WILC_CFG_PKT) { buffer_offset = ETH_CONFIG_PKT_HDR_OFFSET; - } - else if (tqe->type == WILC_NET_PKT) { + } else if (tqe->type == WILC_NET_PKT) { char *pBSSID = ((struct tx_complete_data *)(tqe->priv))->pBssid; buffer_offset = ETH_ETHERNET_HDR_OFFSET; /* copy the bssid at the sart of the buffer */ memcpy(&txb[offset + 4], pBSSID, 6); - } - else { + } else { buffer_offset = HOST_HDR_OFFSET; } @@ -1183,9 +1181,7 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc) pkt_offset &= ~(IS_MANAGMEMENT | IS_MANAGMEMENT_CALLBACK | IS_MGMT_STATUS_SUCCES); WILC_WFI_mgmt_rx(wilc, &buffer[offset + HOST_HDR_OFFSET], pkt_len); - } - else - { + } else { if (!is_cfg_packet) { if (pkt_len > 0) {