diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-23 13:16:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-23 13:38:09 +0100 |
commit | d83e06e3ad829bd43829f71fad316d2ca9d37e8d (patch) | |
tree | e962052caa440d436677a1a30b4bfa8a43bd3e9f | |
parent | ec3ae7dbb087e12b0095d00a9074c8be2d017595 (diff) | |
download | v4l-utils-d83e06e3ad829bd43829f71fad316d2ca9d37e8d.tar.gz |
libdvbv5: desc_network_name: simplify the init code
This is a very simple descriptor. Make the code equally simple.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | lib/libdvbv5/descriptors/desc_network_name.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libdvbv5/descriptors/desc_network_name.c b/lib/libdvbv5/descriptors/desc_network_name.c index c88404c9..fbca5fb6 100644 --- a/lib/libdvbv5/descriptors/desc_network_name.c +++ b/lib/libdvbv5/descriptors/desc_network_name.c @@ -29,14 +29,12 @@ int dvb_desc_network_name_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc) { struct dvb_desc_network_name *net = (struct dvb_desc_network_name *) desc; - uint8_t len; /* the length of the string in the input data */ - uint8_t len1; /* the lenght of the output strings */ + uint8_t len; len = desc->length; - len1 = len; net->network_name = NULL; net->network_name_emph = NULL; - dvb_parse_string(parms, &net->network_name, &net->network_name_emph, buf, len1); + dvb_parse_string(parms, &net->network_name, &net->network_name_emph, buf, len); buf += len; return 0; } |