From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752739AbcHMAMD (ORCPT ); Fri, 12 Aug 2016 20:12:03 -0400 Received: from down.free-electrons.com ([37.187.137.238]:38616 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752248AbcHMAMC (ORCPT ); Fri, 12 Aug 2016 20:12:02 -0400 Date: Sat, 13 Aug 2016 02:12:01 +0200 From: Alexandre Belloni To: LABBE Corentin Cc: a.zummo@towertech.it, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: fix a cast removing the const attribute Message-ID: <20160813001201.GD5245@piout.net> References: <1471005974-16973-1-git-send-email-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471005974-16973-1-git-send-email-clabbe.montjoie@gmail.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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