Skip to contentSkip to conversation

staging: comedi: ssv_dnp: remove empty private data

PATCH New H Hartley Sweeten 1 participant 1 message Jun 20, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: ssv_dnp: remove empty private data

The private data struct 'dnp_private_data' contains no information. Remove it and the alloc_private() call.

Cc Ian Abbott <[email protected]>
Cc Frank Mori Hess <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/ssv_dnp.c | 13 -------------
 1 file changed, 13 deletions(-)
drivers/staging/comedi/drivers/ssv_dnp.c +0 -13
index 72dbccc..84b9f2a 100644
@@ -59,14 +59,6 @@ struct dnp_board {
 	int have_dio;
 };
 
-/* This structure is for data unique to the DNP driver --------------------- */
-struct dnp_private_data {
-
-};
-
-/* Shorthand macro for faster access to the private data ------------------- */
-#define devpriv ((dnp_private *)dev->private)
-
 /* ------------------------------------------------------------------------- */
 /* The insn_bits interface allows packed reading/writing of DIO channels.    */
 /* The comedi core can convert between insn_bits and insn_read/write, so you */
@@ -189,11 +181,6 @@ static int dnp_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
 	dev->board_name = board->name;
 
-	/* Allocate the private structure area. alloc_private() is a         */
-	/* convenient macro defined in comedidev.h.                          */
-	if (alloc_private(dev, sizeof(struct dnp_private_data)) < 0)
-		return -ENOMEM;
-
 	ret = comedi_alloc_subdevices(dev, 1);
 	if (ret)
 		return ret;
Signature · 1 line
1.7.11