Skip to content
Commit e714fa93 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Takashi Iwai
Browse files

ALSA: aloop: Constify ops structs



The only usage of the ops field in the loopback_cable struct is to call
its members, the field it self is never changed. Make it a pointer to
const. This allows us to constify two static loopback_ops structs to
allow the compiler to put them in read-only memory.

Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201120231046.76758-1-rikard.falkeborn@gmail.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 45bbe6c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment