Commit c0a142e2 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: usb: Constify snd_device_ops definitions

Now we may declare const for snd_device_ops definitions, so let's do
it for optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-11-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent efb0ad25
...@@ -3407,7 +3407,7 @@ static int create_keep_iface_ctl(struct usb_mixer_interface *mixer) ...@@ -3407,7 +3407,7 @@ static int create_keep_iface_ctl(struct usb_mixer_interface *mixer)
int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif, int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
int ignore_error) int ignore_error)
{ {
static struct snd_device_ops dev_ops = { static const struct snd_device_ops dev_ops = {
.dev_free = snd_usb_mixer_dev_free .dev_free = snd_usb_mixer_dev_free
}; };
struct usb_mixer_interface *mixer; struct usb_mixer_interface *mixer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment