diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2013-08-20 16:55:41 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-22 10:07:49 -0700 |
| commit | b88e75bb6576d99e0ba4f6edc978293d1ff9c01b (patch) | |
| tree | b54a96587a277457094287353897784fb2dc7c1c /tools/perf/scripts/python/netdev-times.py | |
| parent | aac6b82e8946052cce24857c5a7528b284c544d0 (diff) | |
staging: comedi: pcmmio: remove unneeded checks on detach
As pointed out by Dan carpenter for the similar pcmuio driver, there is
no need to check the pointer passed to `kfree()`, so remove that check
from `pcmmio_detach()`.
Also, check the `devpriv` (`dev->private`) pointer once, outside the
`for` loop.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
