diff options
author | Mike Isely <isely@pobox.com> | 2006-07-18 20:42:18 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-07-18 20:42:18 -0500 |
commit | b75a23337c003e45c5017f29cbeb4189a6b1e8f1 (patch) | |
tree | 28be710aa1309ae7bdcd6f1840a7a0e654b11778 /linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c | |
parent | 82a8cd5b91676683cfa89ef44c35f60db77c6f2a (diff) | |
download | mediapointer-dvb-s2-b75a23337c003e45c5017f29cbeb4189a6b1e8f1.tar.gz mediapointer-dvb-s2-b75a23337c003e45c5017f29cbeb4189a6b1e8f1.tar.bz2 |
Refine dead code elimination in pvrusb2
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c index 06d3d9a38..28385b0c9 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c @@ -222,7 +222,9 @@ int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) " pvr2_ioread_setup (tear-down) id=%p",cp); pvr2_ioread_stop(cp); pvr2_stream_kill(cp->stream); - pvr2_stream_set_buffer_count(cp->stream,0); + if (pvr2_stream_get_buffer_count(cp->stream)) { + pvr2_stream_set_buffer_count(cp->stream,0); + } cp->stream = NULL; } if (sp) { @@ -265,8 +267,8 @@ int pvr2_ioread_get_enabled(struct pvr2_ioread *cp) { return cp->enabled != 0; } -#endif /* 0 */ +#endif /* 0 */ static int pvr2_ioread_get_buffer(struct pvr2_ioread *cp) { int stat; |