From patchwork Tue Aug 3 01:46:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Justin P. Mattock" X-Patchwork-Id: 116652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o731kGei027249 for ; Tue, 3 Aug 2010 01:46:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751497Ab0HCBqO (ORCPT ); Mon, 2 Aug 2010 21:46:14 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:47178 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357Ab0HCBqN (ORCPT ); Mon, 2 Aug 2010 21:46:13 -0400 Received: by pwi5 with SMTP id 5so1506741pwi.19 for ; Mon, 02 Aug 2010 18:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=dEKqEe2q4LRfT5gD4Lnkytt3BWPh2jkIETetOuKquUc=; b=eK+DAO9NnScAWwIimzsxmjtIHO7TSnX50sUteFE8/VZsRC6agBFGbf0csooUSsJb/g u8FxIUR8lMGKOWWj30JO3PlFETCxoJEUDu+ca7QILDrw7jnTVoh3TwpL1cvAC/jT4qWq qbLcFA7ftFAUWV13ibZIxFpRU1T/f0nYVvx5k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ICXNWV8e2bc94uYHgFxLrxgEf6CfRAZ9ag/B8hNmWFwzB3OCuPkfHrN654bj1hzdWm fKSVCUyNVGwqA8lX/+lo9VnPADPALrYmLoNZCy2is/1RL9h8/KC5pn6yRmzUilFvtuzw 52CkH/A4LpwfUwTvXQNlVVh7ZuD6vJ3OtynLk= Received: by 10.142.192.4 with SMTP id p4mr6064920wff.311.1280799972528; Mon, 02 Aug 2010 18:46:12 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id 33sm8439084wfg.9.2010.08.02.18.46.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 18:46:11 -0700 (PDT) From: "Justin P. Mattock" To: linux-wireless@vger.kernel.org Cc: j@w1.fi, linville@tuxdriver.com, mcgrof@gmail.com, julian.calaby@gmail.com, "Justin P. Mattock" Subject: [PATCH v3]hostap:hostap_ioctl.c Fix variable 'ret' set but not used Date: Mon, 2 Aug 2010 18:46:11 -0700 Message-Id: <1280799971-7091-1-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 03 Aug 2010 01:46:16 +0000 (UTC) diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index a85e43a..2cf6532 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c @@ -1689,7 +1689,7 @@ static int prism2_request_scan(struct net_device *dev) if (local->func->set_rid(dev, HFA384X_RID_SCANREQUEST, &scan_req, sizeof(scan_req))) { printk(KERN_DEBUG "SCANREQUEST failed\n"); - ret = -EINVAL; + return ret; } if (!local->host_roaming)