diff --git a/candump.c b/candump.c index a4e80d5..a1146f5 100644 --- a/candump.c +++ b/candump.c @@ -674,12 +674,7 @@ int main(int argc, char **argv) /* check for (unlikely) dropped frames on this specific socket */ if (dropcnt[i] != last_dropcnt[i]) { - __u32 frames; - - if (dropcnt[i] > last_dropcnt[i]) - frames = dropcnt[i] - last_dropcnt[i]; - else - frames = UINT32_MAX - last_dropcnt[i] + dropcnt[i]; + __u32 frames = dropcnt[i] - last_dropcnt[i]; if (silent != SILENT_ON) printf("DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n",