Skip to content

Commit

Permalink
staging: comedi: s626: remove unneeded clear of private data
Browse files Browse the repository at this point in the history
The private data is kzalloc'ed. All the variables in it are
initially '0'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 80ec951 commit b7eaf21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/comedi/drivers/s626.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,9 +2848,6 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)
s->maxdata = 0xffffff;
s->range_table = &range_unknown;

/* stop ai_command */
devpriv->ai_cmd_running = 0;

s626_initialize(dev);

return 1;
Expand Down

0 comments on commit b7eaf21

Please sign in to comment.