diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-dvb.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-dvb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.c b/drivers/media/video/pvrusb2/pvrusb2-dvb.c index 2e64f98d1241..6504c97e0bbc 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-dvb.c +++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.c | |||
@@ -130,7 +130,7 @@ static void pvr2_dvb_stream_end(struct pvr2_dvb_adapter *adap) | |||
130 | for (idx = 0; idx < PVR2_DVB_BUFFER_COUNT; idx++) { | 130 | for (idx = 0; idx < PVR2_DVB_BUFFER_COUNT; idx++) { |
131 | if (!(adap->buffer_storage[idx])) continue; | 131 | if (!(adap->buffer_storage[idx])) continue; |
132 | kfree(adap->buffer_storage[idx]); | 132 | kfree(adap->buffer_storage[idx]); |
133 | adap->buffer_storage[idx] = 0; | 133 | adap->buffer_storage[idx] = NULL; |
134 | } | 134 | } |
135 | adap->stream_run = 0; | 135 | adap->stream_run = 0; |
136 | } | 136 | } |
@@ -142,7 +142,7 @@ static int pvr2_dvb_stream_do_start(struct pvr2_dvb_adapter *adap) | |||
142 | unsigned int idx; | 142 | unsigned int idx; |
143 | int ret; | 143 | int ret; |
144 | struct pvr2_buffer *bp; | 144 | struct pvr2_buffer *bp; |
145 | struct pvr2_stream *stream = 0; | 145 | struct pvr2_stream *stream = NULL; |
146 | 146 | ||
147 | if (adap->stream_run) return -EIO; | 147 | if (adap->stream_run) return -EIO; |
148 | 148 | ||
@@ -174,7 +174,7 @@ static int pvr2_dvb_stream_do_start(struct pvr2_dvb_adapter *adap) | |||
174 | ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); | 174 | ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); |
175 | if (ret < 0) return ret; | 175 | if (ret < 0) return ret; |
176 | 176 | ||
177 | while ((bp = pvr2_stream_get_idle_buffer(stream)) != 0) { | 177 | while ((bp = pvr2_stream_get_idle_buffer(stream)) != NULL) { |
178 | ret = pvr2_buffer_queue(bp); | 178 | ret = pvr2_buffer_queue(bp); |
179 | if (ret < 0) return ret; | 179 | if (ret < 0) return ret; |
180 | } | 180 | } |