Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbdIPLub (ORCPT ); Sat, 16 Sep 2017 07:50:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3827 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdIPLua (ORCPT ); Sat, 16 Sep 2017 07:50:30 -0400 X-IronPort-AV: E=Sophos;i="5.42,402,1500933600"; d="scan'208";a="291377340" Date: Sat, 16 Sep 2017 13:50:28 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Srishti Sharma cc: lidza.louina@gmail.com, markh@compro.net, gregkh@linuxfoundation.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH] Staging: dgnc: Remove unused variables from structure definition In-Reply-To: <1505562186-11813-1-git-send-email-srishtishar@gmail.com> Message-ID: References: <1505562186-11813-1-git-send-email-srishtishar@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2337 Lines: 71 On Sat, 16 Sep 2017, Srishti Sharma wrote: > Some variables in the structure were unused and hence them and > the comments associated with them can be removed. How did you find these? The last two can easily be checked with grep, but that is ont the case for type. Actually there are two structures in the file with useless proc_entry_pointer fields. The other one has a useless dgnc_channel_table. It could be reasonable to make a series to do both structures. julia > > Signed-off-by: Srishti Sharma > --- > drivers/staging/dgnc/dgnc_driver.h | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h > index 764d6fe..2b625cc 100644 > --- a/drivers/staging/dgnc/dgnc_driver.h > +++ b/drivers/staging/dgnc/dgnc_driver.h > @@ -103,8 +103,6 @@ struct board_ops { > /** > * struct dgnc_board - Per board information. > * @boardnum: Board number (0 - 32). > - * > - * @type: Type of board. > * @name: Product name. > * @pdev: Pointer to the pci_dev structure. > * @bd_flags: Board flags. > @@ -140,13 +138,9 @@ struct board_ops { > * @dpastatus: Board status as defined by DPA. > * @bd_dividend: Board/UART's specific dividend. > * @bd_ops: Pointer to board operations structure. > - * @proc_entry_pointer: Proc/ entry > - * @dgnc_board_table: Proc/ entry > */ > struct dgnc_board { > int boardnum; > - > - int type; > char *name; > struct pci_dev *pdev; > unsigned long bd_flags; > @@ -200,10 +194,6 @@ struct dgnc_board { > uint bd_dividend; > > struct board_ops *bd_ops; > - > - struct proc_dir_entry *proc_entry_pointer; > - struct dgnc_proc_entry *dgnc_board_table; > - > }; > > /* Unit flag definitions for un_flags. */ > -- > 2.7.4 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1505562186-11813-1-git-send-email-srishtishar%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >