diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 12:30:03 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 12:30:03 +0100 |
commit | 5c804c6bc55bcfb217c8001b3ca49cca0f9e7047 (patch) | |
tree | 114eb3f792f7d7e5511d5d9b0490f5fe4cbcf036 /drivers/media/usb/zr364xx | |
parent | media: saa7134-alsa: don't use casts to print a buffer address (diff) | |
download | linux-5c804c6bc55bcfb217c8001b3ca49cca0f9e7047.tar.xz linux-5c804c6bc55bcfb217c8001b3ca49cca0f9e7047.zip |
media: vivid-radio-rx: add a cast to avoid a warning
The logic at vivid_radio_rx_g_tuner() is producint an overflow
warning:
drivers/media/platform/vivid/vivid-radio-rx.c:250 vivid_radio_rx_g_tuner() warn: potential negative subtraction from max '65535 - (__builtin_choose_expr( == || == , , __builtin_choose_expr( == || == , , __builtin_choose_expr( == || == , , __builtin_choose_expr( == || == , , __builtin_choose_expr( == || == , , __builtin_choose_expr( == , , (0))))))) * 65535) / delta'
Add a cast to prevent that.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/zr364xx')
0 files changed, 0 insertions, 0 deletions