From patchwork Tue Jun 15 18:53:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sergey V." X-Patchwork-Id: 106309 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 o5FIsYU1016853 for ; Tue, 15 Jun 2010 18:54:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758255Ab0FOSx6 (ORCPT ); Tue, 15 Jun 2010 14:53:58 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:56178 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758053Ab0FOSxz (ORCPT ); Tue, 15 Jun 2010 14:53:55 -0400 Received: by bwz7 with SMTP id 7so2856090bwz.19 for ; Tue, 15 Jun 2010 11:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=5SSv9Y1vg4IIaS13YVKtNfhce6fI5668Qm4ZTGhlYAs=; b=B9KNakT61UFTXufBh4mopT4fw91XYiOUm08dVePx6pdwxwcNtvj+UAC/Imq/mlo2Wh /Avikr9evkK99WkofD7Zp3TWm/YoeJdLVHDCpvKFzcTCwrjMx4RIGx5FIl/MUQNTYUXC tOXXrIHuKL1f75osUb5QhAKPtYnAwqpXYwONU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=Rzxc6qa3uxmb7XxoCIgmCNX+NnZ+vMo/DAXPswSfD9rKJHTa8D9Zcff9f6VjQ1YJ32 7CqUCQ4NnvL4taVW59LtOiIr+qygW2WiiUqqmyV9zUKP7YP+hJnLA8ohp0kfDnP1MgIh Hicky/EZlAqEwU924nTMI/L4pVL6Ku4TuUMw0= Received: by 10.204.47.6 with SMTP id l6mr5743038bkf.90.1276628033447; Tue, 15 Jun 2010 11:53:53 -0700 (PDT) Received: from darkstar.localnet ([79.174.50.208]) by mx.google.com with ESMTPS id f13sm25611799bka.11.2010.06.15.11.53.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 11:53:51 -0700 (PDT) From: "Sergey V." To: "Justin P. Mattock" Subject: Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' set but not used Date: Tue, 15 Jun 2010 22:53:43 +0400 User-Agent: KMail/1.13.3 (Linux/2.6.33.4; KDE/4.4.3; x86_64; ; ) Cc: linux-kernel@vger.kernel.org, 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 References: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> <1276547208-26569-5-git-send-email-justinmattock@gmail.com> In-Reply-To: <1276547208-26569-5-git-send-email-justinmattock@gmail.com> MIME-Version: 1.0 Message-Id: <201006152253.44326.sftp.mtuci@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]); Tue, 15 Jun 2010 18:54:35 +0000 (UTC) diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 05ad4a1..f9f5b47 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c @@ -505,15 +505,14 @@ ssize_t tpm_getcap(struct device *dev, __be32 subcap_id, cap_t *cap, void tpm_gen_interrupt(struct tpm_chip *chip) { struct tpm_cmd_t tpm_cmd; - ssize_t rc; tpm_cmd.header.in = tpm_getcap_header; tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); tpm_cmd.params.getcap_in.subcap = TPM_CAP_PROP_TIS_TIMEOUT; - rc = transmit_cmd(chip, &tpm_cmd, TPM_INTERNAL_RESULT_SIZE, - "attempting to determine the timeouts"); + transmit_cmd(chip, &tpm_cmd, TPM_INTERNAL_RESULT_SIZE, + "attempting to determine the timeouts"); } EXPORT_SYMBOL_GPL(tpm_gen_interrupt);