[PATCH 2/4] can-roundtrip-stats: remove needless else after continue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The "else" is not needed after the "continue" statements. Remove it.

Signed-off-by: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>
---
 can-roundtrip-stats.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/can-roundtrip-stats.c b/can-roundtrip-stats.c
index 1eaed35..9d828d1 100644
--- a/can-roundtrip-stats.c
+++ b/can-roundtrip-stats.c
@@ -503,11 +503,10 @@ int main(int argc, char **argv)
 			if (get_tx_timestamp(soc, &msg, &kernel_tx) == 1) {
 				got_tx_timestamp = true;
 				continue;
-			} else {
-				usleep(100000);
-				clock_gettime(CLOCK_REALTIME, &user_tx);
-				send_canfd_frame_str(soc, can_id++, "", CANFD_BRS);
 			}
+			usleep(100000);
+			clock_gettime(CLOCK_REALTIME, &user_tx);
+			send_canfd_frame_str(soc, can_id++, "", CANFD_BRS);
 		} else if (get_rx_timestamp(soc, &msg, &kernel_rx) == 1) {
 			got_tx_timestamp = false;
 			clock_gettime(CLOCK_REALTIME, &user_rx);
-- 
2.35.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux