lkml.org 
[lkml]   [2020]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ALSA: aloop: Constify ops structs
On Sat, 21 Nov 2020 00:10:46 +0100,
Rikard Falkeborn wrote:
>
> 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: Rikard Falkeborn <rikard.falkeborn@gmail.com>

Thanks, applied.


Takashi

\
 
 \ /
  Last update: 2020-11-21 09:33    [W:0.258 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site