Message ID | 20170531000557.GA3301@embeddedgus |
---|---|
State | New |
Headers | show
Return-Path: <tpmdd-devel-bounces@lists.sourceforge.net> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wdxxf0PxYz9sNJ for <incoming@patchwork.ozlabs.org>; Fri, 2 Jun 2017 05:20:06 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sourceforge.net header.i=@sourceforge.net header.b="BqN9oETm"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sf.net header.i=@sf.net header.b="ITOZX9SR"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <tpmdd-devel-bounces@lists.sourceforge.net>) id 1dGVdZ-0003Wy-Lq; Thu, 01 Jun 2017 19:20:01 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <garsilva@embeddedor.com>) id 1dFrVY-0007Pb-G0 for tpmdd-devel@lists.sourceforge.net; Wed, 31 May 2017 00:29:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date; bh=kZG8vXdgPhiXU+hQKHlfafb2CfzLvB4Pm2wItx8Hy9Y=; b=BqN9oETmtWcKx+qe2x7k3/rKZ3C2cfMrlRsj/iCh7SSyLT0v5F0Ra99hhqNFyO2F1a3Hztbg8WMJ1dINJqJlAk3kBRS2/IAk6jDvYffXsPyFAPDw+qNZwAvyP4Ny0zHuod5KDXzy0m2X8keB0z0FB2LX2dVC1AEXXht7m6DKgfs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date; bh=kZG8vXdgPhiXU+hQKHlfafb2CfzLvB4Pm2wItx8Hy9Y=; b=ITOZX9SRpPagiCNay1M5QOIzhLKlAjIBeURC4IMQLHgrRCGRkTV/EtgfVjAxXd6ABbewB+SGxVILxnqIe1Kb8tuD7w/vqMGyMjZ40WGlaugak/s1DPMdK5/aRNwQrxajf5hG+cB7loJYQnLWuNvf/t5qEtWJyr+tweufqzf3kfo=; Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of embeddedor.com designates 192.185.47.206 as permitted sender) client-ip=192.185.47.206; envelope-from=garsilva@embeddedor.com; helo=gateway22.websitewelcome.com; Received: from gateway22.websitewelcome.com ([192.185.47.206]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1dFrVX-0003OY-H9 for tpmdd-devel@lists.sourceforge.net; Wed, 31 May 2017 00:29:04 +0000 Received: from cm6.websitewelcome.com (cm6.websitewelcome.com [108.167.139.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id EF09814611 for <tpmdd-devel@lists.sourceforge.net>; Tue, 30 May 2017 19:06:05 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cm6.websitewelcome.com with id So5y1v00y0V9LXg01o5zLQ; Tue, 30 May 2017 19:05:59 -0500 Received: from [189.152.189.101] (port=45254 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.87) (envelope-from <garsilva@embeddedor.com>) id 1dFr9C-000Mtp-J8; Tue, 30 May 2017 19:05:58 -0500 Date: Tue, 30 May 2017 19:05:57 -0500 From: "Gustavo A. R. Silva" <garsilva@embeddedor.com> To: Peter Huewe <peterhuewe@gmx.de>, Marcel Selhorst <tpmdd@selhorst.net>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Message-ID: <20170531000557.GA3301@embeddedgus> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170530174027.Horde.AYiQnLwlE09KhkcqzdNaVTk@gator4166.hostgator.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - lists.sourceforge.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.189.101 X-Exim-ID: 1dFr9C-000Mtp-J8 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.152.189.101]:45254 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 5 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [192.185.47.206 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.9 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1dFrVX-0003OY-H9 X-Mailman-Approved-At: Thu, 01 Jun 2017 19:19:58 +0000 Subject: [tpmdd-devel] [PATCH] char: tpm: remove unnecessary code X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: Tpm Device Driver maintainance <tpmdd-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=tpmdd-devel> List-Post: <mailto:tpmdd-devel@lists.sourceforge.net> List-Help: <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=subscribe> Cc: tpmdd-devel@lists.sourceforge.net, "Gustavo A. R. Silva" <garsilva@embeddedor.com>, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: tpmdd-devel-bounces@lists.sourceforge.net |
diff --git a/drivers/char/tpm/st33zp24/st33zp24.c b/drivers/char/tpm/st33zp24/st33zp24.c index 4d1dc8b..ca74c24 100644 --- a/drivers/char/tpm/st33zp24/st33zp24.c +++ b/drivers/char/tpm/st33zp24/st33zp24.c @@ -373,8 +373,6 @@ static int st33zp24_send(struct tpm_chip *chip, unsigned char *buf, int ret; u8 data; - if (!chip) - return -EBUSY; if (len < TPM_HEADER_SIZE) return -EBUSY;
Remove unnecessary code. Pointer chip cannot be NULL in st33zp24_send(). Addresses-Coverity-ID: 1397648 Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> --- drivers/char/tpm/st33zp24/st33zp24.c | 2 -- 1 file changed, 2 deletions(-)