mirror of
https://github.com/linux-can/can-utils.git
synced 2026-11-04 15:31:10 +01:00
isobusfs: srv: add missing break statements in current directory response
The switch statement which maps the errors of the current directory access check to the ISOBUS FS error codes had no break statements. Due to the fall through every error was reported as ISOBUSFS_ERR_OTHER. Add the missing break statements. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
@@ -170,10 +170,13 @@ static int isobusfs_srv_dh_current_dir_res(struct isobusfs_srv_priv *priv,
|
|||||||
switch (ret) {
|
switch (ret) {
|
||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
error_code = ISOBUSFS_ERR_FILE_ORPATH_NOT_FOUND;
|
error_code = ISOBUSFS_ERR_FILE_ORPATH_NOT_FOUND;
|
||||||
|
break;
|
||||||
case -ENOMEDIUM:
|
case -ENOMEDIUM:
|
||||||
error_code = ISOBUSFS_ERR_VOLUME_NOT_INITIALIZED;
|
error_code = ISOBUSFS_ERR_VOLUME_NOT_INITIALIZED;
|
||||||
|
break;
|
||||||
case -ENOMEM:
|
case -ENOMEM:
|
||||||
error_code = ISOBUSFS_ERR_OUT_OF_MEM;
|
error_code = ISOBUSFS_ERR_OUT_OF_MEM;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
error_code = ISOBUSFS_ERR_OTHER;
|
error_code = ISOBUSFS_ERR_OTHER;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user