lkml.org 
[lkml]   [2020]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] atm: atmtcp: Constify atmtcp_v_dev_ops
From
From: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Date: Sun, 27 Sep 2020 23:10:42 +0200

> The only usage of atmtcp_v_dev_ops is to pass its address to
> atm_dev_register() which takes a pointer to const, and comparing its
> address to another address, which does not modify it. Make it const to
> allow the compiler to put it in read-only memory.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>

Applied to net-next

\
 
 \ /
  Last update: 2020-09-29 01:15    [W:0.032 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site