From patchwork Mon Jun 14 20:26:47 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: 106033 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 o5EKSdS8005790 for ; Mon, 14 Jun 2010 20:28:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756073Ab0FNU1d (ORCPT ); Mon, 14 Jun 2010 16:27:33 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:65524 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755885Ab0FNU1D (ORCPT ); Mon, 14 Jun 2010 16:27:03 -0400 Received: by mail-px0-f174.google.com with SMTP id 8so3026668pxi.19 for ; Mon, 14 Jun 2010 13:27:02 -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=20VJNbR19y23JUmMrJeST0EMJaYCB8SFr/UyCwweIUk=; b=B0rdwYeV6Mp5hN10CMbxjpkEk+HeG5mo9i+220lsE/+rl85CSH/c0mHRFs9prJa5YJ vTk47ev2DjFKrRScMtEfaoNelKBtkF7oMJUNzeOGo9FR7zYivRAxaGPD4upR4+TKoUqk D4novXZnO1w2myDrBcOgRwlAeqkjmjpt2przM= 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=Px4K/mnufaYKB41cv3ApPrz4ZtmD8OeeuQHUjweoACuHKkEqdojDQ1I3+ZY82hx2lW ygSIKLVCFOzBQXhtUPnVUKrJLTKm60wU6PgZTlmB2ifCUOzPhIQpJLx4SMFezTLeC0hD o4y+UWYejfYkTyV1/haLmj8fKZalyfqYaJGPY= Received: by 10.115.66.9 with SMTP id t9mr4932450wak.78.1276547222528; Mon, 14 Jun 2010 13:27:02 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id r20sm58982854wam.5.2010.06.14.13.27.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 13:27:01 -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 7/8]ieee1394/sdp2 Fix warning: variable 'unit_characteristics' set but not used Date: Mon, 14 Jun 2010 13:26:47 -0700 Message-Id: <1276547208-26569-8-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/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index 4565cb5..fcf8bd5 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c @@ -1356,6 +1356,8 @@ static void sbp2_parse_unit_directory(struct sbp2_lu *lu, management_agent_addr = 0; unit_characteristics = 0; + if (!unit_characteristics) + unit_characteristics = 0; firmware_revision = SBP2_ROM_VALUE_MISSING; model = ud->flags & UNIT_DIRECTORY_MODEL_ID ? ud->model_id : SBP2_ROM_VALUE_MISSING;