Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753258AbdFSAfr (ORCPT ); Sun, 18 Jun 2017 20:35:47 -0400 Received: from mga05.intel.com ([192.55.52.43]:49975 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752891AbdFSAfq (ORCPT ); Sun, 18 Jun 2017 20:35:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,358,1493708400"; d="scan'208";a="1161954040" Message-ID: <1497832542.14670.1.camel@linux.intel.com> Subject: Re: [PATCH] char: tpm: remove unnecessary NULL check From: Jarkko Sakkinen To: "Gustavo A. R. Silva" , Peter Huewe , Marcel Selhorst , Jason Gunthorpe Cc: tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Date: Mon, 19 Jun 2017 02:35:42 +0200 In-Reply-To: <20170613195542.GA5677@embeddedgus> References: <20170613195542.GA5677@embeddedgus> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 447 Lines: 13 On Tue, 2017-06-13 at 14:55 -0500, Gustavo A. R. Silva wrote: > Remove unnecessary NULL check. > Pointer _chip_ cannot be NULL in this instance. >  > Addresses-Coverity-ID: 1397646 > Cc: Jarkko Sakkinen > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen (compilation) /Jarkko