From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128AbcDWKBl (ORCPT ); Sat, 23 Apr 2016 06:01:41 -0400 Received: from mail.skyhub.de ([78.46.96.112]:58126 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751747AbcDWKBj (ORCPT ); Sat, 23 Apr 2016 06:01:39 -0400 Date: Sat, 23 Apr 2016 12:01:13 +0200 From: Borislav Petkov To: Arnd Bergmann Cc: Thor Thayer , Doug Thompson , Mauro Carvalho Chehab , Alan Tull , Dinh Nguyen , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] EDAC, altera: remove useless casts Message-ID: <20160423100113.GB8531@pd.tnic> References: <1460837650-1237650-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1460837650-1237650-1-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 16, 2016 at 10:13:55PM +0200, Arnd Bergmann wrote: > The altera EDAC driver refers to its per-device data > using a cast to '(void *)', which makes the pointer > non-const, though both the source and destination are > actually const. > > Removing the annotation makes the reference (almost) > fit into a single line for improved readability, and > ensures that it is actually defined as const. > > Signed-off-by: Arnd Bergmann > --- > drivers/edac/altera_edac.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) Both applied, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.