From patchwork Fri Feb 5 01:35:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8229921 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 0E5A69F6DA for ; Fri, 5 Feb 2016 01:35:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31EE3202F2 for ; Fri, 5 Feb 2016 01:35:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45869202BE for ; Fri, 5 Feb 2016 01:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751872AbcBEBfh (ORCPT ); Thu, 4 Feb 2016 20:35:37 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36555 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbcBEBfg (ORCPT ); Thu, 4 Feb 2016 20:35:36 -0500 Received: by mail-pf0-f171.google.com with SMTP id n128so59011758pfn.3 for ; Thu, 04 Feb 2016 17:35:36 -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=gukhOqiwy6kfONVSvFkhJzs2A9gExvmQA1Hvj+1+xz4=; b=zSJus/UYsidKFWAdu3nyVzCzlNgRtP+QrHAbOmJc7bBiWBJNcQX/neJKzB0A4UdbvK bX+RFSHPn7ER1hCDSNx19B3gS62qvPkMNgUY/JjWkvUTYTRVC8OV1CHgC38rNr5LCU60 /57p3DPZzNqhHk7wW+ar0+VxvCh5GimOIDkkAn5ZrKY1kGUzT795dJnIIPUvUi60wsa/ 3jpanIP7gtXiePNBC44kZGc21QjroFMkpbjGDXjZPtrfoj/fMmAcZMnuQdiScuJXvnRt 6Yu+EWkVZ0QDM+hG3j8u0TNFIba+EVyTyEiCm+5HMrmXD3nL6QeAy5K/headrXicy1AT pD/A== 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; bh=gukhOqiwy6kfONVSvFkhJzs2A9gExvmQA1Hvj+1+xz4=; b=aNKi5IWsbtuK25grNekbeBmU7Y3umMrk/GO9PEdZ23WOxAY/ZQW7TSPmMzrJjIs904 PKMCcY/12a0xsbNvIqZ3v3N6IARNtnO36z/GtEPeUXIOYOU7lKOBaJpo3JKVnGmMqoJY YpLOZoY1hQ1G4Ppjh90zRx4KXfLSC3UBahoddQM+7BV7i3MmjhZW3Yo5bAW/YMJKEfpG C3kLtdFkYURFQrcPDBHI7BpmdQkq2uYjQetTP2SK232WSjk4YLAOm8cWSAL35jmmUinq VBXoUBUW3ysEFDRjzjDXXJHGq5qNR9D9isqaNJkVx16YRrwDCd3rN3TcEnYMdPoVQnjl nntA== X-Gm-Message-State: AG10YORUiSqvAfMijyyzhtRnOoo8/iW/smCkTXbSu1mFjf7twt/rUycRbN0P54DOHs4luQ== X-Received: by 10.98.17.92 with SMTP id z89mr16175304pfi.16.1454636136410; Thu, 04 Feb 2016 17:35:36 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 74sm19960478pfs.33.2016.02.04.17.35.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 17:35:35 -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 1/8] staging: wilc1000: fix return type of wilc_hif_set_cfg Date: Fri, 5 Feb 2016 10:35:11 +0900 Message-Id: <1454636118-9943-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.0 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 This patch changes return type of wilc_hif_set_cfg from s32 to int. The result variable gets return value from wilc_mq_send that has data type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index d77e2b2..a5b7dd1 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3729,10 +3729,10 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type, return result; } -s32 wilc_hif_set_cfg(struct wilc_vif *vif, +int wilc_hif_set_cfg(struct wilc_vif *vif, struct cfg_param_val *pstrCfgParamVal) { - s32 result = 0; + int result = 0; struct host_if_msg msg; struct host_if_drv *hif_drv = vif->hif_drv; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 4c02e6b..fe32a9a 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -339,7 +339,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type, u8 *ch_freq_list, u8 ch_list_len, const u8 *ies, size_t ies_len, wilc_scan_result scan_result, void *user_arg, struct hidden_network *hidden_network); -s32 wilc_hif_set_cfg(struct wilc_vif *vif, +int wilc_hif_set_cfg(struct wilc_vif *vif, struct cfg_param_val *pstrCfgParamVal); int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler); s32 wilc_deinit(struct wilc_vif *vif);