Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp940629pxb; Wed, 3 Mar 2021 21:53:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZK5M306fP2ODhxUnvuU18GoAYPGPij9Geo3WkEffUqTSEoc0KXxBtE5TDmt9CEzVWXuHX X-Received: by 2002:a05:6402:30a2:: with SMTP id df2mr2526898edb.29.1614837200219; Wed, 03 Mar 2021 21:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614837200; cv=none; d=google.com; s=arc-20160816; b=yn9J53J8dlxkV1BtyNYCtIJzK6Vbz5YOCvbNeSLIprec9LIk7HBCfrOTIaEumBth/2 Bhpm8m9H0cosBQuf5+RcHJesQH8AYmjnZMCZsaB7GCnTcyLitAvDQhkzDuOeDoA73kwB ka5+IGYviZ8Mp0RBS9+U47TMH841Ly0Dmh6qQ6oX8padluU/LykeXq1OgHKe5IdUTlA9 kVN0wFjdsXAJGfkFbJBXN5xskbUHc8TmtnXW0rS9xXbSjPMWDO8LMsbQE4b7c8MuEOn8 q8jc9s8l77nipXsGyGNYXCF2te16Lh0V7Q6hJajCAxbRx1GlT0aJuhajY9+FMncrG0Uy oJ2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IoV8ejQHH6bf0aHsPphlRU6szusrlDIP0vWEySpzVQY=; b=z6SXbiAjTjTvDOgQ+AJmJkV3s/RTPyfr8CwdYITechQ55FZf/zSqLz3o5esQZ3DFGY L6r3/Gu5P8qvnyYdMEn+85XEpkG0JHUpH5BV92rkDdXwNBpUed25dIEba0m/PgMsELrW EAeloUBZLdmOFYhRzFVqhQ3qW6ZcXssBVdKSX860OAR/rE/PB62BytbPUuHZjN/DB0iW 7E6RjhhN5cSIybHVboXn6JK3hxn6aatqbuGIWkp0TE6bttAfQwAz/R6RdMK+20Yqtg4N WHc9LK9glwxZ2rc5DAjDT15cPEvM+4elCg2e3KWAIJDRAJvf/N7LIGDCKoKGAp7baLYr BiKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si17315415ejg.121.2021.03.03.21.52.57; Wed, 03 Mar 2021 21:53:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381382AbhCBHSJ (ORCPT + 99 others); Tue, 2 Mar 2021 02:18:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:39618 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835896AbhCBGZI (ORCPT ); Tue, 2 Mar 2021 01:25:08 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E180EB03C; Tue, 2 Mar 2021 06:22:21 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Johan Hovold Subject: [PATCH 37/44] USB: serial/keyspan, drop unneeded forward declarations Date: Tue, 2 Mar 2021 07:22:07 +0100 Message-Id: <20210302062214.29627-37-jslaby@suse.cz> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210302062214.29627-1-jslaby@suse.cz> References: <20210302062214.29627-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forward declarations make the code larger, harder to follow and rewrite. Harder as the declarations are often omitted from global changes. Remove forward declarations which are not really needed, i.e. when the definition of the function is before its first use. Signed-off-by: Jiri Slaby Cc: Johan Hovold --- drivers/usb/serial/keyspan.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 622077dcc344..b04a029e3657 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c @@ -41,27 +41,7 @@ #define DRIVER_AUTHOR "Hugh Blemings