From patchwork Wed Jun 10 18:57:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Kholmanskikh X-Patchwork-Id: 6584311 X-Patchwork-Delegate: kvalo@adurom.com 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 3ABB1C0020 for ; Wed, 10 Jun 2015 18:58:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 556852038A for ; Wed, 10 Jun 2015 18:58:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49CA8202F8 for ; Wed, 10 Jun 2015 18:58:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964855AbbFJS6V (ORCPT ); Wed, 10 Jun 2015 14:58:21 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:34967 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754333AbbFJS6A (ORCPT ); Wed, 10 Jun 2015 14:58:00 -0400 Received: by labko7 with SMTP id ko7so39458431lab.2; Wed, 10 Jun 2015 11:57:58 -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:in-reply-to:references; bh=yjn84t6qC7BJWvdP42Xv0spCU0KrNSw5ms/QBf2RVu0=; b=zoKmAHUOUykU1WcesVP4fKT0y+O4h8FyFgIyyTWC+ecsMKt5NH+Z1SQAiZluOWwE/y 3Woe9axmaskWJcqn4wOIGlBw+dSGqO5HnhvanLrXtjeFjxbh17pscTOBBVNm8LBRuM6C ZuXFyfd3NZ7zKkTM81pnKPHvYnM2NydVm3DcAspnBNHzvLd5oB4z+cXSm6WDDmyOOikC XrBDmjzubHBZucBrIpemZpCS5bq2Om8wfw40pZR24hPCAHudhaGJmcTn2uIwZAtu7b4l YhiA90LkhLb+YXEp63Vzc81zqxUumJy1+cA9QPk8hYGZyYezLAqL6QLZHQy5Fu6fnhOr saLA== X-Received: by 10.112.119.198 with SMTP id kw6mr3593232lbb.97.1433962678746; Wed, 10 Jun 2015 11:57:58 -0700 (PDT) Received: from localhost.localdomain ([93.92.200.170]) by mx.google.com with ESMTPSA id wc8sm2401949lbb.37.2015.06.10.11.57.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 11:57:58 -0700 (PDT) From: Stanislav Kholmanskikh To: johnny.kim@atmel.com, rachel.kim@atmel.com, dean.lee@atmel.com, chris.park@atmel.com, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Stanislav Kholmanskikh Subject: [PATCH v5 2/3] staging: wilc1000: coreconfigurator: Change return(X) to return X Date: Wed, 10 Jun 2015 21:57:25 +0300 Message-Id: <1433962646-4278-2-git-send-email-kholmanskikh.s.s@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433962646-4278-1-git-send-email-kholmanskikh.s.s@gmail.com> References: <1433962646-4278-1-git-send-email-kholmanskikh.s.s@gmail.com> 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 Changed 'return(X)' to 'return X' in coreconfigurator.c to satisfy checkpatch.pl warning: ERROR: return is not a function, parentheses are not required Signed-off-by: Stanislav Kholmanskikh --- drivers/staging/wilc1000/coreconfigurator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index b54e43a..b90eaf1 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -710,13 +710,13 @@ u8 *get_tim_elm(u8 *pu8msa, WILC_Uint16 u16RxLen, WILC_Uint16 u16TagParamOffset) /* Search for the TIM Element Field and return if the element is found */ while (u16index < (u16RxLen - FCS_LEN)) { if (pu8msa[u16index] == ITIM) { - return(&pu8msa[u16index]); + return &pu8msa[u16index]; } else { u16index += (IE_HDR_LEN + pu8msa[u16index + 1]); } } - return(0); + return 0; } /* This function gets the current channel information from @@ -728,7 +728,7 @@ u8 get_current_channel_802_11n(u8 *pu8msa, WILC_Uint16 u16RxLen) index = TAG_PARAM_OFFSET; while (index < (u16RxLen - FCS_LEN)) { if (pu8msa[index] == IDSPARMS) - return (pu8msa[index + 2]); + return pu8msa[index + 2]; else /* Increment index by length information and header */ index += pu8msa[index + 1] + IE_HDR_LEN; @@ -750,7 +750,7 @@ u8 get_current_channel(u8 *pu8msa, WILC_Uint16 u16RxLen) #else /* FIVE_GHZ_BAND */ /* Extract current channel information from */ /* the beacon/probe response frame */ - return (get_current_channel_802_11n(pu8msa, u16RxLen)); + return get_current_channel_802_11n(pu8msa, u16RxLen); #endif /* FIVE_GHZ_BAND */ #else return 0;