From: norly Date: Sat, 11 Jun 2022 12:51:10 +0000 (+0200) Subject: Remove fixed array size for can327_bitrate_const X-Git-Url: https://git.enpas.org/?p=elmcan.git;a=commitdiff_plain;h=90de9535e18d66f5a182dc9689dc7015d551da23 Remove fixed array size for can327_bitrate_const No idea why this was even there. --- diff --git a/module/can327.c b/module/can327.c index ea92daf..d522c08 100644 --- a/module/can327.c +++ b/module/can327.c @@ -1052,7 +1052,7 @@ static void can327_ldisc_tx_wakeup(struct tty_struct *tty) * or 7/8 of that. Divisors are 1 to 64. * Currently we don't implement support for 7/8 rates. */ -static const u32 can327_bitrate_const[64] = { +static const u32 can327_bitrate_const[] = { 7812, 7936, 8064, 8196, 8333, 8474, 8620, 8771, 8928, 9090, 9259, 9433, 9615, 9803, 10000, 10204, 10416, 10638, 10869, 11111, 11363, 11627, 11904, 12195,