From: Mauro Carvalho Chehab Date: Mon, 22 Nov 2021 09:07:24 +0000 (+0000) Subject: media: marvell-ccic: drop to_cam() unused function X-Git-Tag: v5.17-rc1~171^2~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f73dcec407612eb308699a5d8182d70916210b0;p=thirdparty%2Flinux.git media: marvell-ccic: drop to_cam() unused function This function is an alias for container_of() that it is currently not used, causing clang warnings. So, drop it. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/marvell-ccic/cafe-driver.c b/drivers/media/platform/marvell-ccic/cafe-driver.c index b61b9d9551af5..03dcf8bf705e8 100644 --- a/drivers/media/platform/marvell-ccic/cafe-driver.c +++ b/drivers/media/platform/marvell-ccic/cafe-driver.c @@ -139,13 +139,6 @@ struct cafe_camera { */ #define CAFE_SMBUS_TIMEOUT (HZ) /* generous */ -static inline struct cafe_camera *to_cam(struct v4l2_device *dev) -{ - struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev); - return container_of(m, struct cafe_camera, mcam); -} - - static int cafe_smbus_write_done(struct mcam_camera *mcam) { unsigned long flags;