From patchwork Fri Feb 5 01:35:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8229941 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 7EF19BEEE5 for ; Fri, 5 Feb 2016 01:35:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C243202F2 for ; Fri, 5 Feb 2016 01:35:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 903D0202BE for ; Fri, 5 Feb 2016 01:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbcBEBfo (ORCPT ); Thu, 4 Feb 2016 20:35:44 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36603 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbcBEBfn (ORCPT ); Thu, 4 Feb 2016 20:35:43 -0500 Received: by mail-pf0-f182.google.com with SMTP id n128so59013104pfn.3 for ; Thu, 04 Feb 2016 17:35:42 -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=ffU7xIbSjFkHryMojEF5A0ACpO6mq2RgBOKKB/kKlto=; b=G66kBuNPl0why9MH/nhgg//4m37Q4GTZU87T9psQCssY4gGjpzE+E7WlXbPKg4G4Zn EWvAy74OP7i8lZX+P8G/d9QMu6GpmW1rrWRGRrxJXB7LmjGLwI4oTopoPqCpEU+4AUZJ G4B++QEVom2w9WQNDHQGOqnhbpyJyotRCL3X88/c/o3SlFjvA6KRSC8LPzl4TKbMQeZ7 3WRO1MOWyafMzCXMgICdoXMdLCrwj+NTZpOJB1wiQhcmvwrsnDJFi34HIiltIose8u3y KEPo6geP5dzIDO3XdxYnw0Lx82wdIX99726qC6PO73+UK/r7EWn7qG9A8lBByo04mc3o S0ZQ== 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=ffU7xIbSjFkHryMojEF5A0ACpO6mq2RgBOKKB/kKlto=; b=EmSXmTzwIp2GxdkX8mVAkyKOpry3lP9E8H3q8KmfIsrNt2F4NCqCvywCo09+1NFIHo nKVQ1hQji4Sr0Q72alMjJxIVtkXBYgvBK2o8zRmY8TTDZv5dh6a/UIty2daGa0MsUo5Q F1X3SYe2SAe9jICtWBKHUA+6jCNhf2QZLCux5XegIzeEqeDVewfLpoi+bttmpsxAC7zA JmhvB3gZMNeiFxDegyYrKZ9Ob1uWTEDjolKcZDePpgKkOXJ1jcHZH+opBq7EFyX56AFn NYkFdAAyLGQOFw8Yy7P+cBVlWwhy7nXbvz9ZZtblOg2S8RIQ6RTZFRpdcyxyBWtGh4UM /1UA== X-Gm-Message-State: AG10YOQx+bGBy7Dvicgrx9CaEgF93zRVApTQC8bBab1pllLf1oWOZqfBBa1LzAJIeZggOw== X-Received: by 10.98.71.147 with SMTP id p19mr16025668pfi.165.1454636142659; Thu, 04 Feb 2016 17:35:42 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 74sm19960478pfs.33.2016.02.04.17.35.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 17:35:42 -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 3/8] staging: wilc1000: fix return type of wilc_deinit Date: Fri, 5 Feb 2016 10:35:13 +0900 Message-Id: <1454636118-9943-3-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 This patch changes return type of wilc_deinit 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 --- 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 0f8175f..36eeeb4 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3882,9 +3882,9 @@ _fail_: return result; } -s32 wilc_deinit(struct wilc_vif *vif) +int wilc_deinit(struct wilc_vif *vif) { - 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 4b19bf1..f4e6839 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -342,7 +342,7 @@ int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type, int wilc_hif_set_cfg(struct wilc_vif *vif, struct cfg_param_val *cfg_param); int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler); -s32 wilc_deinit(struct wilc_vif *vif); +int wilc_deinit(struct wilc_vif *vif); int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period, u32 head_len, u8 *head, u32 tail_len, u8 *tail); int wilc_del_beacon(struct wilc_vif *vif);