From patchwork Tue Apr 19 00:35:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8876201 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 7AB5C9F443 for ; Tue, 19 Apr 2016 00:35:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B210820103 for ; Tue, 19 Apr 2016 00:35:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D03FE201FA for ; Tue, 19 Apr 2016 00:35:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbcDSAfs (ORCPT ); Mon, 18 Apr 2016 20:35:48 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34315 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbcDSAfr (ORCPT ); Mon, 18 Apr 2016 20:35:47 -0400 Received: by mail-pf0-f193.google.com with SMTP id d184so102712pfc.1 for ; Mon, 18 Apr 2016 17:35:46 -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=5j8IoOYWDiB8OeHk1b252IEWr1M72PofVkpJDPvSN+g=; b=Unem8eNd4HVuZZMmv9mmEIUr5IRGswMFyLiDQq4nUH+lHwLziTLFF6e8XtWxJ6DFV8 Wn2kAANs9q9UD/h8RaHMCWZwJ4CT9k/2ycKeuTA6ZmYjXOLZHjGfVhYbQP/Ifpx3rNdJ LxBjkU1nKR/z6cAKUG5AOHLPA1sTiJUj95GYA8QDMFvza5Uvvv52LlxsJXaYZerRCI0s gv1CXVAxo8WVaMae95wchjjFmCAQXtMNo09/Scuazu25bs1mTNTKulCcDwOnn6EFBh5s PrcCCGvhhqn6gyY0gH/A9n84Wgtb8Phu7oI8i3DT9CQMlGAfvxNABtvD5OBwwOTulFI2 TOYA== 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=5j8IoOYWDiB8OeHk1b252IEWr1M72PofVkpJDPvSN+g=; b=PwoBgSV8PMf7O6GCpwKJeRD/zqe7mAAq9Pxllc/jQTaD9z2r7qLUZFnr86p7S/BQB4 mkcNn+kCxK1exe8QtnpSiqzvEkwNEysqKzu6UkJxmDQPGVhLfKDX58n+25c73BAGsqMO b966F9QDiSngE7K61nNMRhNWQukVp9st4oKVl/eJZM7IS++ZqUyGA/ON64XvCZeyigUk WO9nLLZHG3B2wQhP0JUrIa0cMMFqTlbmCkNZuNX/kKe86QBI7eOcij6CeI1prREU+2W/ J9Mli1f4lum30vOtmg/7lCYO3ppk5oGko9XsPIWbeDi5GrrXRH+0lUYTwC+mhO4j+VQE 9wcg== X-Gm-Message-State: AOPr4FV7rgaTFFRDlEOSja9azs33lcQn8IvAZeWIeRDNK3cBCZFOOTVZZiwQXhESaKOM3g== X-Received: by 10.98.22.79 with SMTP id 76mr108509pfw.74.1461026146310; Mon, 18 Apr 2016 17:35:46 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id i67sm21246905pfb.56.2016.04.18.17.35.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Apr 2016 17:35:45 -0700 (PDT) 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/3] staging: wilc1000: rename result in handle_set_ip_address Date: Tue, 19 Apr 2016 09:35:31 +0900 Message-Id: <1461026131-5841-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1461026131-5841-1-git-send-email-chaehyun.lim@gmail.com> References: <1461026131-5841-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.8 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 renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 9ddb238..5d352aa 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -351,7 +351,7 @@ static void handle_set_operation_mode(struct wilc_vif *vif, static void handle_set_ip_address(struct wilc_vif *vif, u8 *ip_addr, u8 idx) { - int result = 0; + int ret = 0; struct wid wid; char firmware_ip_addr[4] = {0}; @@ -365,12 +365,12 @@ static void handle_set_ip_address(struct wilc_vif *vif, u8 *ip_addr, u8 idx) wid.val = (u8 *)ip_addr; wid.size = IP_ALEN; - result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, - wilc_get_vif_idx(vif)); + ret = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, + wilc_get_vif_idx(vif)); host_int_get_ipaddress(vif, firmware_ip_addr, idx); - if (result) + if (ret) netdev_err(vif->ndev, "Failed to set IP address\n"); }