OSDN Git Service

media: saa7134-go7007: get rid of to_state() function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 09:53:02 +0000 (09:53 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 29 Nov 2021 09:15:04 +0000 (10:15 +0100)
commit8efe1d7c0023ce124fa9984095f5bc7198c71c82
tree7a38f94712b8fa90bbdaa48ed0325272649f5352
parentf16ce2e275bbe38582e6bb9416c9c7c92bb42f95
media: saa7134-go7007: get rid of to_state() function

This is just an alias for container_of() and it is used only
on a commented code. The commented code actually is an issue that
require fixes, so, move the container_of() call to the commented
code, and drop the unused function.

This way, a fix for the function could be added later without
needing to re-add to_state() function.

This fixes a clang W=1 warning.

Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/saa7134/saa7134-go7007.c