From patchwork Fri Feb 5 01:35:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8229961 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 4889CBEEE5 for ; Fri, 5 Feb 2016 01:35:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6FE1E202F2 for ; Fri, 5 Feb 2016 01:35:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B644202BE for ; Fri, 5 Feb 2016 01:35:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbcBEBfv (ORCPT ); Thu, 4 Feb 2016 20:35:51 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33528 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbcBEBft (ORCPT ); Thu, 4 Feb 2016 20:35:49 -0500 Received: by mail-pa0-f54.google.com with SMTP id cy9so25035684pac.0 for ; Thu, 04 Feb 2016 17:35:49 -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:in-reply-to:references; bh=yJERuE80WvdZ49vgKmjrjgExQIGPYo9dqjXb+PAFl6U=; b=xBWURqzhxlnLQZv2kbhA1g8AcYy7na99GA2+ptzTwmIsTuj0t2bRe+rlEmPr4VGLeZ ifkGlsygOHJgg6N99U2q4GLU9L21gkIdmNG6+NNtbH9ExIWo1daS+fiXydpPv0Smu9a/ qWWUWR5AbsipWrJQwzi3GRkXqXXj23Co8GQF/fCWbKogZ4Mxe6WG1vBN5NtHJfKNlk/U ZVjyjO3vyiDmJd8xlQiyoe1Gnyh0iEmmoZp3dKhlV1ejG5CYv9aGn5bGW6oy9gRdpbY6 e8mG2ezKuRKcYG8X84TwdtnCotZNwchg5y/r7JLvjIRqFjqVnRktrg/gqHslTkWLT85U c3rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yJERuE80WvdZ49vgKmjrjgExQIGPYo9dqjXb+PAFl6U=; b=SaQ5G96MrEwWOmjBqHLtOr7TqV+eMAigMM1El7Plo9CuVnSnRGaO34qdV3uH31Ihla qjH71bTfJ2D66ewK1mFoMJovykT1YSC7Lw8huJTnDXFOTQx5rhmzqC3f+MdLptojy033 P20fTx7l5B6cZ+VBDJkxBOb5/GF8Vg8RvKpcsxK6Wpzn/vtxIoLwxqokhTOeQ6ssEe5z sUbboJG5sRtoQKcPKmlDAnp9HF7shuvifv6JQF5eRdq7O1h929w/jyBwx+t9XKfGzV1E ERpMabwXQeQEiDm1Ns1OOowEMp9QybmR4NmjyVWZ9HBM51ssAd/MdjI5zml7zPeYJGp9 5CjQ== X-Gm-Message-State: AG10YOQrbGk5BwN5cOJ2qPaY+s+HXZkUJN6TDgZPXRYJZDiBBEHlpNP8qr/85rFv1Mmh1A== X-Received: by 10.66.227.73 with SMTP id ry9mr15950953pac.120.1454636149143; Thu, 04 Feb 2016 17:35:49 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 74sm19960478pfs.33.2016.02.04.17.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 17:35:48 -0800 (PST) From: Chaehyun Lim 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, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 5/8] staging: wilc1000: fix return type of wilc_send_config_pkt Date: Fri, 5 Feb 2016 10:35:15 +0900 Message-Id: <1454636118-9943-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454636118-9943-1-git-send-email-chaehyun.lim@gmail.com> References: <1454636118-9943-1-git-send-email-chaehyun.lim@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=-7.2 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 wilc_send_config_pkt is returned 0 or -ETIMEDOUT according to return value of wilc_wlan_cfg_get or wilc_wlan_cfg_set. It is better to use int type to represent linux standard error code. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 49ae9b1..323a0cd 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -449,10 +449,11 @@ s32 wilc_dealloc_assoc_resp_info(tstrConnectRespInfo *pstrConnectRespInfo) * @date 1 Mar 2012 * @version 1.0 */ -s32 wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids, +int wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids, u32 count, u32 drv) { - s32 counter = 0, ret = 0; + s32 counter = 0; + int ret = 0; if (mode == GET_CFG) { for (counter = 0; counter < count; counter++) {