Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1599993

Re: [PATCH] engine: mv_xor: remove redundant null check on cd

From Vinod Koul <vinod.koul@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] engine: mv_xor: remove redundant null check on cd
Date 2017-03-14 03:30 +0100
Message-ID <tkKnM-1IQ-3@gated-at.bofh.it> (permalink)
References <tge38-4N8-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Mar 01, 2017 at 02:07:21PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The check to see if cd is null is redundant, pdata->channels is
> never null at this point, and hence &pdata->channels[i] cannot
> be null, so remove the null check.
> 
> Detected by CoverityScan, CID#1357194 ("Logically Dead Code")

Applied after fixing subsystem name

-- 
~Vinod

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] engine: mv_xor: remove redundant null check on cd Colin King <colin.king@canonical.com> - 2017-03-01 16:10 +0100
  Re: [PATCH] engine: mv_xor: remove redundant null check on cd Vinod Koul <vinod.koul@intel.com> - 2017-03-14 03:30 +0100

csiph-web