From patchwork Mon May 2 10:47:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8990981 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 8C2799F39D for ; Mon, 2 May 2016 10:48:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEBE4201FA for ; Mon, 2 May 2016 10:48:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7B74200E1 for ; Mon, 2 May 2016 10:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753638AbcEBKs2 (ORCPT ); Mon, 2 May 2016 06:48:28 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35530 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753626AbcEBKs0 (ORCPT ); Mon, 2 May 2016 06:48:26 -0400 Received: by mail-pa0-f67.google.com with SMTP id zy2so20790940pac.2 for ; Mon, 02 May 2016 03:48:26 -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=41MKxVzCgKEulp3W8razlRlm3HqxbPVedzbpPC9Crs0=; b=gSm+YzukZQcAKxpsNVfAmwhv8+RWzh/MWlPK495+F3ld+yXkx14Tw40RHvXZEb6hIf Hch8tZ5UYL/xyz32RjYcODz9gmvgMnsY2Ap1+7TSD1u0KVDPZpLO4/kYGydNPI6HSY1p 5aiU+K+VS/wR7nb9BYpxRFHv1pTJZt88rrNW9NUfxfGNXyqh1JTTOsakz1Ylrb4vRIQA zDstmyvyMHMrwXRCqcMN4FNZQLg/DeAN6yWHaw9Z2xObmIxhL0BAfYsHGYJJeM3bGoz0 PmVEonuj0luh2MBp9UAC90hR4AckQc4dJc/s13fOA4CBtxEH2IZgkMNB3VXeftnOE1Ph HRBw== 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=41MKxVzCgKEulp3W8razlRlm3HqxbPVedzbpPC9Crs0=; b=E/GuM4Zk5fLDEvq3Gm1SRYKTJyUUUfhkRyah6UGTZR4OgQUsWwEG7czojyL8U/7WPl b4gL5+/VEYFMitZimKA7/C9q5glMk2Dtt8/14IBAT+5M5XhD0oisRurrlW8RtjWf6OJ2 uNoVrQ+DJCwIAshdk6So213h0yBCR5ros8X/rcpKGAIYq2bFGMf+ldqpIJPlbD0VAzvY +w4hcrGel96nxpvg/8dxBwBtWkprx56DabxGxtO+nPlTgTO/gqYzfxVnlHqKbYS9nCyq ixj/Wi81QeHQr6YO5+K75kupav6KnxxTxip9sOXr/jbNuMZUdRQNYWYqbt5zXVnc9ElF oVaw== X-Gm-Message-State: AOPr4FUyGwfOR/KeZUi8p7mnwzsoxMjbSnl17jSBKDJZyq7D4ZzakOib5UGwuuTSOtoUuw== X-Received: by 10.66.222.3 with SMTP id qi3mr50466287pac.24.1462186105957; Mon, 02 May 2016 03:48:25 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id fn3sm44570688pab.20.2016.05.02.03.48.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 May 2016 03:48:25 -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 7/7] staging: wilc1000: rename result in handle_get_mac_address Date: Mon, 2 May 2016 19:47:55 +0900 Message-Id: <1462186075-8549-7-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1462186075-8549-1-git-send-email-chaehyun.lim@gmail.com> References: <1462186075-8549-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 71d6b66..9535842 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -401,7 +401,7 @@ static void handle_get_ip_address(struct wilc_vif *vif, u8 idx) static void handle_get_mac_address(struct wilc_vif *vif, struct get_mac_addr *get_mac_addr) { - int result = 0; + int ret = 0; struct wid wid; wid.id = (u16)WID_MAC_ADDR; @@ -409,10 +409,10 @@ static void handle_get_mac_address(struct wilc_vif *vif, wid.val = get_mac_addr->mac_addr; wid.size = ETH_ALEN; - result = wilc_send_config_pkt(vif, GET_CFG, &wid, 1, - wilc_get_vif_idx(vif)); + ret = wilc_send_config_pkt(vif, GET_CFG, &wid, 1, + wilc_get_vif_idx(vif)); - if (result) + if (ret) netdev_err(vif->ndev, "Failed to get mac address\n"); complete(&hif_wait_response); }