]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dib0090: Fix a warning at dib0090_set_EFUSE
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 18:30:40 +0000 (15:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 19:06:55 +0000 (16:06 -0300)
commit593196ae0d122c2f193ae17813763dd03dc4c82e
tree274a4aaebdeb551baacb5189de475de34de2d920
parentc923d0068298d7c7ad9f750b687c4d70ebdd40a8
[media] dib0090: Fix a warning at dib0090_set_EFUSE

The check if the values for c, h and n are within the range is
always true, as, if one of this values is out of range, the
previous "if" clauses will default to a value within the
range.

That fixes the following warning:

drivers/media/dvb-frontends/dib0090.c: In function 'dib0090_set_EFUSE':
drivers/media/dvb-frontends/dib0090.c:1545:5: warning: comparison is always true due to limited range of data type [-Wtype-limits]

and makes the code easier to read.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/dib0090.c