From patchwork Mon Jun 14 20:26: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: 106034 X-Patchwork-Delegate: dougsland@redhat.com 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 o5EKSdS9005790 for ; Mon, 14 Jun 2010 20:28:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756168Ab0FNU1u (ORCPT ); Mon, 14 Jun 2010 16:27:50 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:52855 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755730Ab0FNU1A (ORCPT ); Mon, 14 Jun 2010 16:27:00 -0400 Received: by mail-pv0-f174.google.com with SMTP id 16so3067678pvg.19 for ; Mon, 14 Jun 2010 13:27:00 -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=LtHcOOFr4DspdO5sAGLsW1SU5XU1E3fMqXGj6XU/UZs=; b=X9KTg0z4JxChHg3gRXRzXdd/Bmao81e55AUQNg7sKbkXIZO/ta1ScJaloSLAj4UClq FbfiNNaf5/5be8+T0nh0M0hy/hczrM+/H4ptM8GQJTbIX/13qHmh5diBMoQVKvFImGY7 eOOyv4CirbSLPkifeG8tDthUi1CyrKR6gz7To= 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=kXhO1lj5zobz8Bqbhyhyy0OZbuaCq4JnW4wjgmTS9EWGVrB4jz6RJpaSuELIRdIkd2 Nx8H4dTjsBEjVcSUpdxKY9rELMVINZa+WYngD2Qi7ytBNptvKMmfHeE5ZSsx+aopS68b kQizR+GWCiqbVd1HJLkGliiy7NFPS0jxdlsM4= Received: by 10.142.10.27 with SMTP id 27mr4319772wfj.265.1276547220007; Mon, 14 Jun 2010 13:27:00 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id r20sm58982854wam.5.2010.06.14.13.26.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 13:26:59 -0700 (PDT) From: "Justin P. Mattock" To: linux-kernel@vger.kernel.org Cc: reiserfs-devel@vger.kernel.org, linux-bluetooth@vger.kernel.org, clemens@ladisch.de, debora@linux.vnet.ibm.com, dri-devel@lists.freedesktop.org, linux-i2c@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-media@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used Date: Mon, 14 Jun 2010 13:26:46 -0700 Message-Id: <1276547208-26569-7-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 In-Reply-To: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> References: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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]); Mon, 14 Jun 2010 20:28:40 +0000 (UTC) diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 1cca263..79c6c26 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -794,6 +794,8 @@ static int i2c_register_adapter(struct i2c_adapter *adap) mutex_lock(&core_lock); dummy = bus_for_each_drv(&i2c_bus_type, NULL, adap, __process_new_adapter); + if(!dummy) + dummy = 0; mutex_unlock(&core_lock); return 0;