From patchwork Wed Apr 6 23:10:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8767121 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 AE4EAC0553 for ; Wed, 6 Apr 2016 23:11:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5BED201BB for ; Wed, 6 Apr 2016 23:11:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03651201B9 for ; Wed, 6 Apr 2016 23:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754582AbcDFXLZ (ORCPT ); Wed, 6 Apr 2016 19:11:25 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34774 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754474AbcDFXLY (ORCPT ); Wed, 6 Apr 2016 19:11:24 -0400 Received: by mail-pa0-f67.google.com with SMTP id hb4so5263944pac.1 for ; Wed, 06 Apr 2016 16:11:24 -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=lkk44u6dPqi8eDvrAOMNPWGrV3SDQEX2koTZH423kqg=; b=xEahw9Co1qvL3Hm+eOVaj+AXmImBWRMUD8c7qOZXwYo9BXfRdtVhsX6NhXlxO6OiVg htuBGK9tZo9kqCehbJeTdnBk/JHfJwCrCk4cRZJg8NSNWOtPxHezkL2kPVrIny4U2Z9A YvGjEeC4YHDohJDrbpPVWyCT3XR5DQHrBN4WrMp8OBvjmNTw4gym3QQqCHNDprxIAF05 bM+ctAj5aY1uDU5/5VkKjlMCyXkuACl3nRtY6d9sd+wxBZAG+01ehxhuINOK2bn8mj7u /0u9KKVe99H1hJDXp/zuWP++1TYR4njGfsBIb7GW1sc8T63V/1Wp+4hPEuTKHAkhVmV4 NtTg== 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=lkk44u6dPqi8eDvrAOMNPWGrV3SDQEX2koTZH423kqg=; b=AvjjCYgA/9BA5Pu2OrMnV+ULgrbCOjjU7WTI/4hrZ4qoPcL44AjkFlTrtVF3sAqVJD nX0u/WWD5onP/BMAPJEdCv9CQCqmRoWWBBrGIRRIww1ySCYXGAOxNYxqtS8bva/qjGdY 08cFzzyMmOouU7fTC/tMMuBeO4TON3n+5niEDNqhgaYb34oN8NJ1/PdArRWdCvPUsVLF 2Ymu6po0xsJLVtZZOQsD5qceoLUVrmrdB7Vk9AAaCZDIffgNapMxO8c/1M/tknDQca48 7wMaFLvyASlcFzWwRSI6LZ1jtv9ZwEJVDd4jt2OUmNG/YlB771kgAvPonjiFKVl9phvZ ecUA== X-Gm-Message-State: AD7BkJI5eK9gyVueqgImTpt4ncW4bp4Cg+e4xIjzzpOvyNwDB6v64XhzjuCrjkCudpHMxQ== X-Received: by 10.66.244.233 with SMTP id xj9mr74764600pac.19.1459984284089; Wed, 06 Apr 2016 16:11:24 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id g6sm7282818pfg.15.2016.04.06.16.11.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 16:11:23 -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_set_operation_mode Date: Thu, 7 Apr 2016 08:10:43 +0900 Message-Id: <1459984243-4689-7-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1459984243-4689-1-git-send-email-chaehyun.lim@gmail.com> References: <1459984243-4689-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 52eddc4..ac620fb 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -331,7 +331,7 @@ static void handle_set_wfi_drv_handler(struct wilc_vif *vif, static void handle_set_operation_mode(struct wilc_vif *vif, struct op_mode *hif_op_mode) { - int result = 0; + int ret = 0; struct wid wid; wid.id = (u16)WID_SET_OPERATION_MODE; @@ -339,13 +339,13 @@ static void handle_set_operation_mode(struct wilc_vif *vif, wid.val = (s8 *)&hif_op_mode->mode; wid.size = sizeof(u32); - 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)); if ((hif_op_mode->mode) == IDLE_MODE) complete(&hif_driver_comp); - if (result) + if (ret) netdev_err(vif->ndev, "Failed to set driver handler\n"); }