From patchwork Sat Oct 17 21:06:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mcquade X-Patchwork-Id: 7423401 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F04DE9F37F for ; Sat, 17 Oct 2015 21:07:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21F9620708 for ; Sat, 17 Oct 2015 21:07:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 22F77206FA for ; Sat, 17 Oct 2015 21:07:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbbJQVG6 (ORCPT ); Sat, 17 Oct 2015 17:06:58 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:38029 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851AbbJQVG5 (ORCPT ); Sat, 17 Oct 2015 17:06:57 -0400 Received: by wicll6 with SMTP id ll6so52611062wic.1; Sat, 17 Oct 2015 14:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=dyyScU8oR2Ik06IhWdqeiRn/J6W5cl7a3EAsA62yv+I=; b=p0Zb1SviMa0aCJUAzq8lsFSkB+eHDSImeSVzOmk0DttIzYVYfQKBjPJ7sBzL+GCjlV pbtE42poezLZrz9KL4y+ifb6fmnxrBKuzU6uoVy/S72oLnW+7O2Fg6JkTmDI4IBCKx6R BX5iENKpWK97+I5H1QoV93DppUQicibjXJaAQYkBS/5aIqO8/I0dGT8DZ/gisS91MbBI u6DROwCZwvndJgL2YzHkINfDJtU2bsxNXiVN6m0mBKYw2v2YJFfSnj5/EmkV4xqo2Wwq 6aop6BpX3f7FO57fY7VGALH6VYzxa8ws4D++amtJAuNFaIUMGW7/7kRRx1QdWUxQcdTb mRuQ== X-Received: by 10.180.188.47 with SMTP id fx15mr12024532wic.41.1445116015625; Sat, 17 Oct 2015 14:06:55 -0700 (PDT) Received: from localhost.localdomain ([78.17.77.116]) by smtp.gmail.com with ESMTPSA id gw8sm8434060wib.15.2015.10.17.14.06.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Oct 2015 14:06:54 -0700 (PDT) From: Paul McQuade To: paulmcquad@gmail.com Cc: sgruszka@redhat.com, helmut.schaa@googlemail.com, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] net: wireless: rt2x00: Space issue Date: Sat, 17 Oct 2015 22:06:43 +0100 Message-Id: <1445116005-28670-1-git-send-email-paulmcquad@gmail.com> X-Mailer: git-send-email 2.6.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Removed empty spaces before/after parenthesis Signed-off-by: Paul McQuade Acked-by: Helmut Schaa --- drivers/net/wireless/rt2x00/rt2x00.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 3282ddb..6f8310a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -107,7 +107,7 @@ * amount of bytes needed to move the data. */ #define ALIGN_SIZE(__skb, __header) \ - ( ((unsigned long)((__skb)->data + (__header))) & 3 ) + (((unsigned long)((__skb)->data + (__header))) & 3) /* * Constants for extra TX headroom for alignment purposes. @@ -128,14 +128,14 @@ #define SLOT_TIME 20 #define SHORT_SLOT_TIME 9 #define SIFS 10 -#define PIFS ( SIFS + SLOT_TIME ) -#define SHORT_PIFS ( SIFS + SHORT_SLOT_TIME ) -#define DIFS ( PIFS + SLOT_TIME ) -#define SHORT_DIFS ( SHORT_PIFS + SHORT_SLOT_TIME ) -#define EIFS ( SIFS + DIFS + \ - GET_DURATION(IEEE80211_HEADER + ACK_SIZE, 10) ) -#define SHORT_EIFS ( SIFS + SHORT_DIFS + \ - GET_DURATION(IEEE80211_HEADER + ACK_SIZE, 10) ) +#define PIFS (SIFS + SLOT_TIME) +#define SHORT_PIFS (SIFS + SHORT_SLOT_TIME) +#define DIFS (PIFS + SLOT_TIME) +#define SHORT_DIFS (SHORT_PIFS + SHORT_SLOT_TIME) +#define EIFS (SIFS + DIFS + \ + GET_DURATION(IEEE80211_HEADER + ACK_SIZE, 10)) +#define SHORT_EIFS (SIFS + SHORT_DIFS + \ + GET_DURATION(IEEE80211_HEADER + ACK_SIZE, 10)) enum rt2x00_chip_intf { RT2X00_CHIP_INTF_PCI,