[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160813001201.GD5245@piout.net>
Date: Sat, 13 Aug 2016 02:12:01 +0200
From: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To: LABBE Corentin <clabbe.montjoie@...il.com>
Cc: a.zummo@...ertech.it, rtc-linux@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rtc: fix a cast removing the const attribute
On 12/08/2016 at 14:46:14 +0200, LABBE Corentin wrote :
> The char pointer buf_ptr is assigned an address from a const char
> pointer buf (parameter of wakealarm_store).
> The data pointer by buf_ptr is never modified.
> So casting it to a (char *) is useless.
>
> This patch remove this cast, and transform buf_ptr to a const char pointer.
>
> Signed-off-by: LABBE Corentin <clabbe.montjoie@...il.com>
> ---
> drivers/rtc/rtc-sysfs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Powered by blists - more mailing lists