mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
custom if statement reordering
It makes more sense to return before hitting else. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+4
-4
@@ -251,11 +251,11 @@ int main(int argc, char **argv)
|
||||
|
||||
n_pci = frame.data[rx_ext];
|
||||
/* check flow control PCI only */
|
||||
if ((n_pci & 0xF0) == 0x30) {
|
||||
bs = frame.data[rx_ext+1];
|
||||
stmin = frame.data[rx_ext+2];
|
||||
} else
|
||||
if ((n_pci & 0xF0) != 0x30)
|
||||
continue;
|
||||
|
||||
bs = frame.data[rx_ext + 1];
|
||||
stmin = frame.data[rx_ext + 2];
|
||||
}
|
||||
|
||||
/* data content starts and index datidx */
|
||||
|
||||
Reference in New Issue
Block a user