summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hyperv_vmbus.h
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-07-15 18:29:53 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-17 20:07:42 -0300
commit2ec4e84a5fabfb08b03644a9f89ba1d9bb7f34b1 (patch)
tree6f9f8f8378ec21c613ac97017c42346fa8c0d350 /drivers/hv/hyperv_vmbus.h
parentb317d0f585229df6407befbeb415f60bcfe74ff0 (diff)
downloadblackbird-op-linux-2ec4e84a5fabfb08b03644a9f89ba1d9bb7f34b1.tar.gz
blackbird-op-linux-2ec4e84a5fabfb08b03644a9f89ba1d9bb7f34b1.zip
[media] saa7164-dvb: Remove unnecessary null test
This patch removes the null test on dvb. dvb is initialized at the beginning of the function to &port->dvb. Since port is dereferenced prior to the null test, port must be a valid pointer, and &port->dvb cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression e,f; identifier g,y; statement S1,S2; @@ *e = &f->g <+... f->y ...+> *if (e != NULL || ...) S1 else S2 Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud