2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-08 05:34:29 +08:00
linux-next/drivers/staging/media
Mauro Carvalho Chehab e935dbfc9f media: atomisp: remove an impossible condition
Changeset dc9f65cf9a ("media: staging: atomisp: avoid a warning if 32
bits build") was meant to solve an impossible condition when building
with 32 bits. It turns that this impossible condition also happens wit
64 bits:
	drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:698 gmin_get_config_var() warn: impossible condition '(*out_len > (~0)) => (0-u64max > u64max)'

After a further analysis, this condition will always be false as, on
all architectures, size_t doesn't have more bits than unsigned long.

Also, the only two archs that really matter are x86 and x86_64, as this
driver doesn't build on other archs (as it depends on X86-specific UEFI
support).

So, just drop the useless code.

Fixes: dc9f65cf9a ("media: staging: atomisp: avoid a warning if 32 bits build")

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-17 05:49:59 -04:00
..
atomisp media: atomisp: remove an impossible condition 2018-04-17 05:49:59 -04:00
bcm2048 vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
davinci_vpfe media: davinci_vpfe: fix __user annotations 2018-04-17 05:27:45 -04:00
imx media: imx-media-csi: Do not propagate the error when pinctrl is not found 2018-04-04 06:12:53 -04:00
imx074 media: imx074: deprecate, move to staging 2018-02-23 02:30:26 -05:00
mt9t031 media: mt9t031: deprecate, move to staging 2018-02-23 02:31:38 -05:00
omap4iss media: omap4iss: make it build with COMPILE_TEST 2018-04-17 05:15:22 -04:00
tegra-vde media: staging: tegra-vde: select DMA_SHARED_BUFFER 2018-01-23 08:05:01 -05:00
Kconfig media: cxd2099: move driver out of staging into dvb-frontends 2018-03-06 08:50:18 -05:00
Makefile media: cxd2099: move driver out of staging into dvb-frontends 2018-03-06 08:50:18 -05:00