summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-12 19:33:53 -0700
committerGary E. Miller <gem@rellim.com>2018-10-12 20:12:17 -0700
commit52bdda01725c859658ea725d4fe7dea7f7f1c0b3 (patch)
tree2ac8cf1510c88476331ba4c239d6061d6f10c804 /driver_ubx.c
parent4921c077c95a5f447d722b0c4332bc3965199463 (diff)
downloadgpsd-52bdda01725c859658ea725d4fe7dea7f7f1c0b3.tar.gz
driver_ubx: remove redundant casts.
No need to cast an unsigned char to an unsigned char.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 03ed840f..c560f6dd 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -746,8 +746,8 @@ gps_mask_t ubx_parse(struct gps_device_t * session, unsigned char *buf,
break;
case UBX_CFG_PRT:
- if ( session->driver.ubx.port_id != (unsigned char)buf[UBX_MESSAGE_DATA_OFFSET + 0] ) {
- session->driver.ubx.port_id = (unsigned char)buf[UBX_MESSAGE_DATA_OFFSET + 0];
+ if (session->driver.ubx.port_id != buf[UBX_MESSAGE_DATA_OFFSET + 0] ) {
+ session->driver.ubx.port_id = buf[UBX_MESSAGE_DATA_OFFSET + 0];
gpsd_log(&session->context->errout, LOG_INF,
"UBX_CFG_PRT: port %d\n", session->driver.ubx.port_id);