component: remove impossible condition
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 2 Feb 2016 07:27:53 +0000 (12:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2016 01:39:33 +0000 (17:39 -0800)
commit4877bb91786e41426bcbec0e151c048a9bd8a1ce
tree7fae3b42605ca2fe0325601e4f1e32328a6d30fc
parent9e5b3d6f7f946a3fb4d83ac2ab6d2bfefcdafffb
component: remove impossible condition

We will be evaluating this condition only if match->num == match->alloc
and that means we have already dereferenced match which implies match
can not be NULL at this point.
Moreover we have done a NULL check on match just before this.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/component.c