29 Jan
2023
29 Jan
'23
7:54 a.m.
+void *snd_soc_usb_get_priv_data(struct device *usbdev) +{
- struct snd_soc_usb *ctx;
- if (!usbdev)
return NULL;
How could usbdev ever be NULL?
The method is exported to public, valid check should be reasonable as someone may call it by mistake
- ctx = snd_soc_find_usb_ctx(usbdev);
- return ctx ? ctx->priv_data : NULL;
+} +EXPORT_SYMBOL_GPL(snd_soc_usb_get_priv_data);