From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84DF5C43142 for ; Wed, 27 Jun 2018 12:03:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B02D26309 for ; Wed, 27 Jun 2018 12:03:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B02D26309 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754309AbeF0MDZ (ORCPT ); Wed, 27 Jun 2018 08:03:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56254 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753611AbeF0MDX (ORCPT ); Wed, 27 Jun 2018 08:03:23 -0400 Received: from localhost (113x41x139x141.ap113.ftth.ucom.ne.jp [113.41.139.141]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C5102CD3; Wed, 27 Jun 2018 12:03:22 +0000 (UTC) Date: Wed, 27 Jun 2018 18:09:17 +0800 From: Greg Kroah-Hartman To: Michal Simek Cc: Michal Simek , linux-kernel@vger.kernel.org, gnomes@lxorguk.ukuu.org.uk, Alexander Graf , shubhraj@xilinx.com, robh@kernel.org, Jiri Slaby , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v2 1/6] serial: uartps: Do not initialize field to zero again Message-ID: <20180627100917.GA20940@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 10:09:05AM +0200, Michal Simek wrote: > On 6.6.2018 14:41, Michal Simek wrote: > > Writing zero and NULLs to already initialized fields is not needed. > > Remove this additional writes. > > > > Signed-off-by: Michal Simek > > --- > > > > Changes in v2: > > - new patch - it can be sent separately too > > > > drivers/tty/serial/xilinx_uartps.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c > > index 8a3e34234e98..5f116f3ecd4a 100644 > > --- a/drivers/tty/serial/xilinx_uartps.c > > +++ b/drivers/tty/serial/xilinx_uartps.c > > @@ -1510,15 +1510,12 @@ static int cdns_uart_probe(struct platform_device *pdev) > > > > /* At this point, we've got an empty uart_port struct, initialize it */ > > spin_lock_init(&port->lock); > > - port->membase = NULL; > > - port->irq = 0; > > port->type = PORT_UNKNOWN; > > port->iotype = UPIO_MEM32; > > port->flags = UPF_BOOT_AUTOCONF; > > port->ops = &cdns_uart_ops; > > port->fifosize = CDNS_UART_FIFO_SIZE; > > port->line = id; > > - port->dev = NULL; > > > > /* > > * Register the port. > > > > Alan, Rob, Greg: Any comment about this RFC? I rarely review RFC patchesets as obviously you don't think it is good enough to be submitted "for real" :) If you think this is all good, great, please resend it without the RFC and it will end up in my queue. thanks, greg k-h