From patchwork Wed Jun 16 05:33:54 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: 106366 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5G5Yd1h009993 for ; Wed, 16 Jun 2010 05:34:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475Ab0FPFeC (ORCPT ); Wed, 16 Jun 2010 01:34:02 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:53541 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754992Ab0FPFd5 (ORCPT ); Wed, 16 Jun 2010 01:33:57 -0400 Received: by mail-px0-f174.google.com with SMTP id 8so3718811pxi.19 for ; Tue, 15 Jun 2010 22:33:57 -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:in-reply-to:references; bh=TyZRTQAAvALUKFN3J1uLY14+jx8yd5gQRGEWU3RFW90=; b=xPj8DqHa72JDUdfKVsCRj7bKoatWoRaeD3RS2EkxX9XKQmJE8lOi27kqE6wc0JuIQ1 /px+GKW8ZWLuYBDd8AXKgeaSBrD7QwOVLlU4jv+HRdnefKMO9K4yvqMZqwyg+ura9pa1 p2gobUurslq0iMXho48mrLgP0tq2ywc6rQ2dM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=fVq0fb9AfVqqdVHvVqydS+06W8zn7Qe8sSUHqG5EbW6Ubw+gdycLDJYXrhek+bzRnu oXJy3VjnyvrDkmII1zUTmTiUpcD2NVFdqYQyVO27OWBU8kGCXTWeuwD1eo7wblqeAaFG 3we8h5IQgM/5VYY4EzGSCLN+OS0O1NnM/fzNQ= Received: by 10.114.87.17 with SMTP id k17mr6616334wab.215.1276666437483; Tue, 15 Jun 2010 22:33:57 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id n29sm77394991wae.4.2010.06.15.22.33.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 22:33:56 -0700 (PDT) From: "Justin P. Mattock" To: linux-kernel@vger.kernel.org Cc: linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 5/5]scsi:hosts.c Fix warning: variable 'rval' set but not used Date: Tue, 15 Jun 2010 22:33:54 -0700 Message-Id: <1276666434-11227-6-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 In-Reply-To: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> References: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> 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]); Wed, 16 Jun 2010 05:34:41 +0000 (UTC) diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 6660fa9..00fd6a4 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -325,7 +325,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) { struct Scsi_Host *shost; gfp_t gfp_mask = GFP_KERNEL; - int rval; if (sht->unchecked_isa_dma && privsize) gfp_mask |= __GFP_DMA; @@ -420,7 +419,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) shost->ehandler = kthread_run(scsi_error_handler, shost, "scsi_eh_%d", shost->host_no); if (IS_ERR(shost->ehandler)) { - rval = PTR_ERR(shost->ehandler); goto fail_kfree; }