Re: [Nouveau] [PATCH] drm/nouveau: remove redundant null check on array mstm->msto

2017-08-17 Thread Colin Ian King
On 17/08/17 13:21, Emil Velikov wrote: > On 17 August 2017 at 11:37, Colin King wrote: >> From: Colin Ian King >> >> The check to see if mstm->msto is null is redundant because it is >> an array and hence can never be null. Remove the

Re: [Nouveau] [PATCH] drm/nouveau: remove redundant null check on array mstm->msto

2017-08-17 Thread Emil Velikov
On 17 August 2017 at 11:37, Colin King wrote: > From: Colin Ian King > > The check to see if mstm->msto is null is redundant because it is > an array and hence can never be null. Remove the redundant check. > > Detected by CoverityScan,

[PATCH] drm/nouveau: remove redundant null check on array mstm->msto

2017-08-17 Thread Colin King
From: Colin Ian King The check to see if mstm->msto is null is redundant because it is an array and hence can never be null. Remove the redundant check. Detected by CoverityScan, CID#1375915 ("Array compared against 0") Signed-off-by: Colin Ian King