staging: vme: vme_user: fix up const issue in vme_bus_match()
Greg Kroah-Hartman
maintainerPATCH 1/1 staging: vme: vme_user: fix up const issue in vme_bus_match()
vme_bus_match takes a const pointer and casts it away with container_of() which is generally not a good idea. Fix this up by properly marking the output as const.
Signed-off-by Greg Kroah-Hartman <[email protected]>
--- drivers/staging/vme_user/vme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vme_user/vme.c +1 -1
@@ -1925,7 +1925,7 @@ EXPORT_SYMBOL(vme_unregister_driver);static int vme_bus_match (struct device *dev,const struct device_driver *drv) { -struct vme_driver *vme_drv; +const struct vme_driver *vme_drv; vme_drv = container_of(drv, struct vme_driver, driver);
Signature · 1 line
2.49.0