aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-23 14:51:01 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-23 14:51:01 +0100
commit233860e8e687f02d8a721ed8c974219996823fd0 (patch)
tree2a0064c72e9b89f035e17fba7a3ed38ed9b5c2ca
parent2c9d6d9b95107fba36ac29426a5893f3bfe6f8fd (diff)
dvb-zap: copy_to_file doesn't return any value
It doesn't make sense to have a return NULL inside it. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--utils/dvb/dvbv5-zap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index 0462124a..534025bd 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -558,8 +558,7 @@ static void copy_to_file(struct dvb_open_descriptor *in_fd, int out_fd,
struct timespec start, *elapsed;
/* Initialize start time, due to -EOVERFLOW with first == 1 */
- if (clock_gettime(CLOCK_MONOTONIC, &start))
- return NULL;
+ clock_gettime(CLOCK_MONOTONIC, &start);
while (timeout_flag == 0) {
r = dvb_dev_read(in_fd, buf, sizeof(buf));

Privacy Policy