Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1733311

[PATCH v2 1/2] Staging: dgnc: Remove unused fields in struct dgnc_board

From Srishti Sharma <srishtishar@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 1/2] Staging: dgnc: Remove unused fields in struct dgnc_board
Date 2017-09-16 18:40 +0200
Message-ID <uqoim-46D-13@gated-at.bofh.it> (permalink)
References <uqoil-46D-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Remove unused fields and comments associated with them in
the structure definition.

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
---
Changes in v2:
 - Use the word field instead of variable.

 drivers/staging/dgnc/dgnc_driver.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h
index 764d6fe..5d2566e 100644
--- a/drivers/staging/dgnc/dgnc_driver.h
+++ b/drivers/staging/dgnc/dgnc_driver.h
@@ -104,7 +104,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 +139,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/<board> entry
- * @dgnc_board_table: Proc/<board> entry
  */
 struct dgnc_board {
 	int		boardnum;
-
-	int		type;
 	char		*name;
 	struct pci_dev	*pdev;
 	unsigned long	bd_flags;
@@ -200,10 +195,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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] Remove unused fields in structure definition Srishti Sharma <srishtishar@gmail.com> - 2017-09-16 18:40 +0200
  [PATCH v2 1/2] Staging: dgnc: Remove unused fields in struct dgnc_board Srishti Sharma <srishtishar@gmail.com> - 2017-09-16 18:40 +0200
    Re: [Outreachy kernel] [PATCH v2 1/2] Staging: dgnc: Remove unused  fields in struct dgnc_board Julia Lawall <julia.lawall@lip6.fr> - 2017-09-16 19:20 +0200
  [PATCH v2 2/2] Staging: dgnc: Remove unused fields in struct channel_t Srishti Sharma <srishtishar@gmail.com> - 2017-09-16 18:40 +0200
    Re: [Outreachy kernel] [PATCH v2 2/2] Staging: dgnc: Remove unused  fields in struct channel_t Julia Lawall <julia.lawall@lip6.fr> - 2017-09-16 19:30 +0200

csiph-web