[media] V4L: Drop bus_type check in v4l2-async match functions
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 19 Jul 2013 15:08:08 +0000 (12:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 30 Jul 2013 18:51:13 +0000 (15:51 -0300)
commit3c2ade017a7e10470aa8112f8a4bfdb2ee30f97f
tree319ed144de01980648689c4c7a96bce17dafe02e
parent408ed9924c0d56d07e0888f6ae560a534ce5c18f
[media] V4L: Drop bus_type check in v4l2-async match functions

These match_* functions are internal callbacks and are always
invoked only after checking asd->bus_type. So drop redundant
checks in match_i2c() and match_platform() functions.
Acked-and-tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-async.c