From patchwork Fri Nov 6 10:11:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 7567981 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 831A0C05C6 for ; Fri, 6 Nov 2015 10:11:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB27420766 for ; Fri, 6 Nov 2015 10:11:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD36720769 for ; Fri, 6 Nov 2015 10:11:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161057AbbKFKLr (ORCPT ); Fri, 6 Nov 2015 05:11:47 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35926 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161036AbbKFKLq (ORCPT ); Fri, 6 Nov 2015 05:11:46 -0500 Received: by pacdm15 with SMTP id dm15so94613299pac.3 for ; Fri, 06 Nov 2015 02:11:46 -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=37m295Y2Au92elT1k5ZUADztqq2oiEtxSPN2iIm68Ik=; b=xlJYmoqUWVaymdk8SCgRR16VoRsogHz4CYUGdBMu9cgIsDJRrZScBueOKu0nIdXhpH 6A5aDTotNkAzyeGIzc4mvkoUHOICjYL8pEkm0tyJFBgUGP/4+4KCdEP8aD51jBL9Y+cX tULAWrB8nfXOslfG9kcbUgpcym0QNdX+7gNwSW8psImsYQQUQUkFzU9usnuF6Wll8wNq 3+dLNDZqU9bwblzAMmMG7/ZntOURt6G5y3XZJBvdOJ1VYxf0WE3PcxkSQ6wh7VPb0kAE x8cR75uAnLC+G8tB4pHK8D4+m4SBq2TKqfFfa+DLJyA7QDEEZrZB1bFFVwly3VvxLnam clLA== X-Received: by 10.68.253.200 with SMTP id ac8mr16727607pbd.31.1446804705994; Fri, 06 Nov 2015 02:11:45 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id hq1sm13086075pbb.43.2015.11.06.02.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Nov 2015 02:11:45 -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, Chaehyun Lim Subject: [PATCH V3 03/12] staging: wilc1000: fix return type of host_int_del_station Date: Fri, 6 Nov 2015 19:11:12 +0900 Message-Id: <1446804681-8873-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1446804681-8873-1-git-send-email-chaehyun.lim@gmail.com> References: <1446804681-8873-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=-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 This patch changes return type of host_int_del_station from s32 to int. The result variable gets return value from wilc_mq_send that has return 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 --- V3: rebase latest staging-testing. 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 ef45b32..dd57454 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -4563,9 +4563,9 @@ s32 host_int_add_station(struct host_if_drv *hif_drv, return result; } -s32 host_int_del_station(struct host_if_drv *hif_drv, const u8 *pu8MacAddr) +int host_int_del_station(struct host_if_drv *hif_drv, const u8 *pu8MacAddr) { - s32 result = 0; + int result = 0; struct host_if_msg msg; struct del_sta *pstrDelStationMsg = &msg.body.del_sta_info; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index e6c99bc..ac310e0 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -382,7 +382,7 @@ s32 host_int_add_station(struct host_if_drv *hWFIDrv, struct add_sta_param *pstrStaParams); s32 host_int_del_allstation(struct host_if_drv *hWFIDrv, u8 pu8MacAddr[][ETH_ALEN]); -s32 host_int_del_station(struct host_if_drv *hWFIDrv, const u8 *pu8MacAddr); +int host_int_del_station(struct host_if_drv *hWFIDrv, const u8 *pu8MacAddr); s32 host_int_edit_station(struct host_if_drv *hWFIDrv, struct add_sta_param *pstrStaParams); s32 host_int_set_power_mgmt(struct host_if_drv *hWFIDrv,