mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[media] gsc-core: Remove useless test
drivers/media/platform/exynos-gsc/gsc-core.c: In function 'gsc_probe': drivers/media/platform/exynos-gsc/gsc-core.c:1089:2: warning: comparison is alw ays false due to limited range of data type [-Wtype-limits] if (gsc->id < 0 || gsc->id >= drv_data->num_entities) { ^ gsc->id is declared as u16, so it should always be a positive value. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
0448056c7e
commit
cff5621372
1 changed files with 1 additions and 1 deletions
|
@ -1086,7 +1086,7 @@ static int gsc_probe(struct platform_device *pdev)
|
|||
else
|
||||
gsc->id = pdev->id;
|
||||
|
||||
if (gsc->id < 0 || gsc->id >= drv_data->num_entities) {
|
||||
if (gsc->id >= drv_data->num_entities) {
|
||||
dev_err(dev, "Invalid platform device id: %d\n", gsc->id);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue