linux/drivers/media
Mauro Carvalho Chehab b6554ea551 [media] drxj: don't do math if not needed
While there's no risk of divison by zero, the logic there is akward, as it
does the calculus for the numerator and denominator before checking
if this will be used.

Change the order to check first if the denominator is zero, and only
calculating the numerator/denominator if not.

This should also avoid those smatch errors:
	drivers/media/dvb-frontends/drx39xyj/drxj.c:9605 ctrl_get_qam_sig_quality() debug: sval_binop_unsigned: divide by zero
	drivers/media/dvb-frontends/drx39xyj/drxj.c:9605 ctrl_get_qam_sig_quality() debug: sval_binop_unsigned: divide by zero
	drivers/media/dvb-frontends/drx39xyj/drxj.c:9605 ctrl_get_qam_sig_quality() debug: sval_binop_unsigned: divide by zero
	drivers/media/dvb-frontends/drx39xyj/drxj.c:9605 ctrl_get_qam_sig_quality() debug: sval_binop_unsigned: divide by zero
	drivers/media/dvb-frontends/drx39xyj/drxj.c:9605 ctrl_get_qam_sig_quality() debug: sval_binop_unsigned: divide by zero

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2016-03-01 10:55:55 -03:00
..
common [media] siano: firmware buffer is too small 2016-02-16 09:29:13 -02:00
dvb-core [media] media: dvb-frontend invoke enable/disable_source handlers 2016-02-27 09:34:06 -03:00
dvb-frontends [media] drxj: don't do math if not needed 2016-03-01 10:55:55 -03:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] tc358743: use - instead of non-ascii wide-dash character 2016-02-27 08:14:43 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] bttv: Width must be a multiple of 16 when capturing planar formats 2016-03-01 10:36:24 -03:00
platform [media] media: ti-vpe: cal: Fix warning: variable dereference before being checked 2016-02-23 07:17:27 -03:00
radio [media] tea575x: convert to library 2016-02-10 09:34:28 -02:00
rc [media] rc-core: don't lock device at rc_register_device() 2016-02-16 08:40:41 -02:00
tuners [media] xc4000: shut up a bogus smatch message 2016-02-23 07:14:02 -03:00
usb [media] airspy: fix bit set/clean mess on s->flags 2016-03-01 10:48:17 -03:00
v4l2-core [media] media: Change v4l-core to check if source is free 2016-02-27 08:46:55 -03:00
Kconfig [media] Kconfig: Re-enable Media controller support for DVB 2016-01-11 12:18:40 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Media Controller register/unregister entity_notify API 2016-02-27 08:33:25 -03:00
media-devnode.c [media] media: Fix media_open() to clear filp->private_data in error leg 2016-02-01 13:21:33 -02:00
media-entity.c [media] media: Media Controller non-locking __media_entity_pipeline_start/stop() 2016-02-27 08:33:28 -03:00