From patchwork Tue Aug 3 00:51:46 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: 116647 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 o730pwfF018999 for ; Tue, 3 Aug 2010 00:51:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753526Ab0HCAvz (ORCPT ); Mon, 2 Aug 2010 20:51:55 -0400 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) 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=1F96+IDp2unhBStf0WYBSDVMsojueVoqrbr5R5OIs4M=; b=tzb4Tsj8H2nAPJL06ePVSINbyslN7K4X6Ib+yFC4SU3oQSeZTvjEgqIZJTnUZkIQRb cuFSmDHAeSNs6Vz337ev45yMfilL0dq3MiIwQhj5x2K5FUCXnBPxFTmyyXWcUiI27Tvr 082i3dXb7PKQb8MGVKBDvrz8BRV8K2Q1Xi9gA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=PGORGTqr7pgYb4DhrhCj1YF2AYZpxGhOH+8O8VdYT2nlQh1gsyjIcUFTPqpk5UUAqF ou51G87AJLNEu948YKNOxjC3YCY/tGFIEyfl9EiHVdcRpTK+/5mHrvsR6Szx8Vbllazg FKuC7kaXzyCIfP923Egk1YrqBx83DPbDon3Zk= Received: by 10.231.191.74 with SMTP id dl10mr7702350ibb.157.1280796709684; Mon, 02 Aug 2010 17:51:49 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id h8sm6002770ibk.9.2010.08.02.17.51.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 17:51:49 -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> 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 00:51:58 +0000 (UTC) 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)