diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2015-01-21 15:11:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 19:59:13 +0800 |
commit | aae59483bce95c3fffd4fa66d5360712f372ba1a (patch) | |
tree | 0cac4112a6e7cc88e869e453fb134eb7f0d20d8d | |
parent | 67a0149ee6b20e3e3da15be27acdbec319214280 (diff) | |
download | op-kernel-dev-aae59483bce95c3fffd4fa66d5360712f372ba1a.zip op-kernel-dev-aae59483bce95c3fffd4fa66d5360712f372ba1a.tar.gz |
staging: comedi: ni_labpc: remove unnecessary private data validation
The labpc_free_dma_chan() function validates the private data. Remove the
unnecessary validation in labpc_datach().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/ni_labpc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c index e7b25e8..a916047 100644 --- a/drivers/staging/comedi/drivers/ni_labpc.c +++ b/drivers/staging/comedi/drivers/ni_labpc.c @@ -104,11 +104,7 @@ static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it) static void labpc_detach(struct comedi_device *dev) { - struct labpc_private *devpriv = dev->private; - - if (devpriv) - labpc_free_dma_chan(dev); - + labpc_free_dma_chan(dev); comedi_legacy_detach(dev); } |