Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933775AbbEEWUa (ORCPT ); Tue, 5 May 2015 18:20:30 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60927 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932119AbbEEWU0 (ORCPT ); Tue, 5 May 2015 18:20:26 -0400 Message-ID: <554941ED.2080004@zytor.com> Date: Tue, 05 May 2015 15:19:25 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Thomas Gleixner , "Bryan O'Donoghue" CC: mingo@redhat.com, x86@kernel.org, dvhart@infradead.org, andy.schevchenko@gmail.com, boon.leong.ong@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, derek.browne@intel.com, josef.ahmad@intel.com, erik.nyquist@intel.com Subject: Re: [PATCH 1/2] x86/quark: Add Quark embedded SRAM support References: <1430705875-6990-1-git-send-email-pure.logic@nexus-software.ie> <1430705875-6990-2-git-send-email-pure.logic@nexus-software.ie> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 25 On 05/04/2015 08:00 AM, Thomas Gleixner wrote: > >> + */ >> +static int esram_dbgfs_state_show(struct seq_file *s, void *unused) >> +{ >> + struct esram_dev *edev = &esram_dev; >> + u32 data; >> + u32 reg = (u32)s->private; > > You really like to waste lines. What's wrong with: > > u32 data, reg = ..... > I have to say I agree with Bryan here: it is rather ugly to mix uninitialized and initialized variables on the same declaration line. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/