From c2a8ceab2b1cd45c2a38fa921521c6b059783440 Mon Sep 17 00:00:00 2001 From: Michael Morgan <84428382+aa5sh@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:38:24 -0500 Subject: [PATCH] Removed Redundant IF --- rotators/gs232a/gs232.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rotators/gs232a/gs232.c b/rotators/gs232a/gs232.c index 3a5f84904..9299db429 100644 --- a/rotators/gs232a/gs232.c +++ b/rotators/gs232a/gs232.c @@ -161,12 +161,8 @@ wrc_rot_set_position(ROT *rot, azimuth_t az, elevation_t el) SNPRINTF(cmdstr, sizeof(cmdstr), "W%03u" EOM, u_az); retval = gs232_wo_transaction(rot, cmdstr, NULL, 0); - if (retval != RIG_OK) - { - return retval; - } + return retval; - return RIG_OK; } static int