diff options
author | H Hartley Sweeten <[email protected]> | 2016-05-02 10:11:41 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-05-03 14:11:15 -0700 |
commit | 48a73aedd7e47140bec5ccab17d4aa8604f76000 (patch) | |
tree | 33803187f8f4de9199a3101f9046f886263dba15 /net/unix/sysctl_net_unix.c | |
parent | ab55b5c9f225d32a5355f7c799ab09c7fae5456d (diff) |
staging: comedi: mite: remove mite member 'channel_allocated'
An allocated mite_channel will have its 'ring' member initialized
to point to the mite_ring that will be used for DMA. A non-allocated
mite_channel will have a 'ring' member set to NULL, either by a
channel release or due to the initial kzalloc of the 'mite' struct.
Refactor the code to use the mite_chan->ring to detect in a channel
is allocated and remove the unnecessary member.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions