From patchwork Tue Feb 16 08:39:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8322711 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 92A1A9F372 for ; Tue, 16 Feb 2016 08:40:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7EA8202D1 for ; Tue, 16 Feb 2016 08:40:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1C67202A1 for ; Tue, 16 Feb 2016 08:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754463AbcBPIkV (ORCPT ); Tue, 16 Feb 2016 03:40:21 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34261 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752598AbcBPIkT (ORCPT ); Tue, 16 Feb 2016 03:40:19 -0500 Received: by mail-pa0-f49.google.com with SMTP id fy10so60202586pac.1 for ; Tue, 16 Feb 2016 00:40:19 -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=mFf6vzUnpp/TtSgJcId/UxyV/Qi+PbFOPGweDAYE+Qk=; b=ocg19R7AyrbBIZXIqitLN2BMr2dXetT/rYYqojcDrC+6mWnJ/uwLEr5QEe/CO712UC 6GXPvG4k6hmxitcR2z4zFm031/243owLV0HK0+VBW61Ic1XOJP1cMV7g2E9JAjfWWhF0 Do7SkCvdbiMPhj1fArJqoVZG42yLXsNO8Twyp4CoiL6m74uolKfdV3xDK/YYvAYLauAx DPLeRqKFIxeOc5PKWDFsSzng/TrLgxSuTbrGThSS+jiybRGRmQCyNNqRt9fvZVKEwSF3 fnI/6q10NfD72vKgFmIrGf0gqCf4vPL1m+xf22CLqEjkh9aHjIjkCUSphQvV3Vi0hAls rD+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:in-reply-to :references; bh=mFf6vzUnpp/TtSgJcId/UxyV/Qi+PbFOPGweDAYE+Qk=; b=J26E18q0rvhiYraDS0SREB/umQws/RPWXB0E9sCNW60rK5CDG+kkAdJ28YYzAKh0Lg AfqNNazBZgYqYSDYRnVRInAE1PtV+QV9rXGb4thww4toWzAFjkUQRnZBxZOCRCd/K9Fu Zcp7F/ky/lrqz3EtS5QCAIQNVmqRuTrxLLztlPGRfFhaysrKG4lmJChiJ1rFiKHyAwdr IVDnUj4F3du8qb+Zb2qNxMZUcGHBAQQ1R8nlHKxv/vw34FdI/GydzJEKRzydNoK/F0e3 cZXrJBrznmBxWOCh0o8VsxHxrPBSwJcoDTPD1brcPfOlxlV3C9n6PhVNbBnK8kkDnqNE /kCw== X-Gm-Message-State: AG10YOSezy+CtIEriSQjdw+1VRF85e8ImBoFVWXIuH5DIBRARB+Xf2fbY1ukVZ895Uwl7Q== X-Received: by 10.66.150.133 with SMTP id ui5mr26086526pab.85.1455612019278; Tue, 16 Feb 2016 00:40:19 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s197sm43783511pfs.62.2016.02.16.00.40.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Feb 2016 00:40:18 -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 6/7] staging: wilc1000: handle_set_mac_address: rename result Date: Tue, 16 Feb 2016 17:39:54 +0900 Message-Id: <1455611995-28773-6-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455611995-28773-1-git-send-email-chaehyun.lim@gmail.com> References: <1455611995-28773-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, 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. It will be changed until all handle_*() function has same variable name as ret. 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 90321a3..bfca0b4 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -427,7 +427,7 @@ static s32 handle_get_ip_address(struct wilc_vif *vif, u8 idx) static void handle_set_mac_address(struct wilc_vif *vif, struct set_mac_addr *set_mac_addr) { - int result = 0; + int ret = 0; struct wid wid; u8 *mac_buf = kmemdup(set_mac_addr->mac_addr, ETH_ALEN, GFP_KERNEL); @@ -439,9 +439,9 @@ static void handle_set_mac_address(struct wilc_vif *vif, wid.val = mac_buf; wid.size = ETH_ALEN; - result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, - wilc_get_vif_idx(vif)); - if (result) + ret = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, + wilc_get_vif_idx(vif)); + if (ret) PRINT_ER("Failed to set mac address\n"); kfree(mac_buf);