mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
26a7ed9c18
As reported by smatch:
drivers/media/platform/exynos-gsc/gsc-core.c:1073 gsc_probe() warn: impossible condition '(gsc->id < 0) => (0-65535 < 0)'
drivers/media/platform/exynos-gsc/gsc-core.c: In function 'gsc_probe':
drivers/media/platform/exynos-gsc/gsc-core.c:1073:51: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (gsc->id >= drv_data->num_entities || gsc->id < 0) {
^
gsc->id is an u16, so it can never be a negative number. So,
remove the always false condition.
Fixes:
|
||
---|---|---|
.. | ||
gsc-core.c | ||
gsc-core.h | ||
gsc-m2m.c | ||
gsc-regs.c | ||
gsc-regs.h | ||
Makefile |