diff options
| author | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-02-20 09:16:16 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-02-20 09:40:46 +0100 |
| commit | 00bf80c437dcbbd808d61cc2866c8f065ff436bd (patch) | |
| tree | b0166c3d4fa8e4e26b30b7105bf032e0a60208c4 /net/unix/sysctl_net_unix.c | |
| parent | can: raw: fix getsockopt() for new CAN_RAW_XL_VCID_OPTS (diff) | |
| download | linux-00bf80c437dcbbd808d61cc2866c8f065ff436bd.tar.gz linux-00bf80c437dcbbd808d61cc2866c8f065ff436bd.zip | |
can: raw: raw_getsockopt(): reduce scope of err
Reduce the scope of the variable "err" to the individual cases. This
is to avoid the mistake of setting "err" in the mistaken belief that
it will be evaluated later.
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20240220-raw-setsockopt-v1-1-7d34cb1377fc@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
