From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932550AbdJXJ7t (ORCPT ); Tue, 24 Oct 2017 05:59:49 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:47341 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932512AbdJXJ7n (ORCPT ); Tue, 24 Oct 2017 05:59:43 -0400 X-Google-Smtp-Source: ABhQp+SkYfa+1LzTFYtCzXlDid26d4hpiEUk5NEwaURxnbuqgYEL66rqJxdmbSHA5b0NkGnovLV5yQ== Date: Tue, 24 Oct 2017 02:59:40 -0700 From: Kees Cook To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] serial: m32r_sio: Drop redundant .data assignment Message-ID: <20171024095940.GA67831@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the timer converted to using the new timer_setup()/from_timer() API, setting the .data field is redundant (and the field will be removed soon), so drop it. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Signed-off-by: Kees Cook --- drivers/tty/serial/m32r_sio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c index 5f4003ad32b6..0bc548adae52 100644 --- a/drivers/tty/serial/m32r_sio.c +++ b/drivers/tty/serial/m32r_sio.c @@ -576,7 +576,6 @@ static int m32r_sio_startup(struct uart_port *port) timeout = timeout > 6 ? (timeout / 2 - 2) : 1; - up->timer.data = (unsigned long)up; mod_timer(&up->timer, jiffies + timeout); } else { retval = serial_link_irq_chain(up); -- 2.7.4 -- Kees Cook Pixel Security