diff --git a/can-calc-bit-timing.c b/can-calc-bit-timing.c index 84b40b4..46e2c16 100644 --- a/can-calc-bit-timing.c +++ b/can-calc-bit-timing.c @@ -625,10 +625,9 @@ static int can_calc_bittiming(struct net_device *dev, struct can_bittiming *bt, "bitrate error %ld.%ld%% too high\n", error / 10, error % 10); return -EDOM; - } else { - netdev_warn(dev, "bitrate error %ld.%ld%%\n", - error / 10, error % 10); } + netdev_warn(dev, "bitrate error %ld.%ld%%\n", + error / 10, error % 10); } /* real sample point */