mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 04:53:36 +01:00
Improve selnl_msglen() function.
This commit is contained in:
parent
805d849d7c
commit
40f3011a6b
1 changed files with 14 additions and 12 deletions
|
@ -35,8 +35,10 @@ static int selnl_msglen(int msgtype)
|
|||
break;
|
||||
|
||||
default:
|
||||
BUG();
|
||||
pr_err("Unknown message type in selnl_msglen: %d\n", msgtype);
|
||||
ret = -EINVAL; // Return an error code or appropriate default value
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue