From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:54449 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076Ab0HCAvz (ORCPT ); Mon, 2 Aug 2010 20:51:55 -0400 Received: by iwn7 with SMTP id 7so4592412iwn.19 for ; Mon, 02 Aug 2010 17:51:54 -0700 (PDT) From: "Justin P. Mattock" To: linux-wireless@vger.kernel.org Cc: j@w1.fi, linville@tuxdriver.com, "Justin P. Mattock" Subject: [PATCH v2]hostap/hostap_ioctl.c Fix variable 'ret' set but not used Date: Mon, 2 Aug 2010 17:51:46 -0700 Message-Id: <1280796706-4384-1-git-send-email-justinmattock@gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: This a resend after receiving feedback on a better solution. The below patch fixes a warning message generated by GCC: CC [M] drivers/net/wireless/hostap/hostap_ioctl.o drivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan': drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not used Signed-off-by: Justin P. Mattock --- drivers/net/wireless/hostap/hostap_ioctl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index a85e43a..955e070 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c @@ -1690,6 +1690,7 @@ static int prism2_request_scan(struct net_device *dev) sizeof(scan_req))) { printk(KERN_DEBUG "SCANREQUEST failed\n"); ret = -EINVAL; + return ret; } if (!local->host_roaming) -- 1.7.1.rc1.21.gf3bd6