Article 5FSH6 Why don't we use success status macro in kernel?

Why don't we use success status macro in kernel?

by
BYPARK
from LinuxQuestions.org on (#5FSH6)
Hi, all.
It's my first question in here and I'm newbie in kernel development.
I was curious when I saw that error codes are defined in macros
while success status is not expressed by macros.

For example, error codes are expressed by macros like this.
Code:return -EINVAL;However, success is not defined but expressed by constant number.
Code:return 0;Why don't we use a macro for success status for unity with fail status (error code)?
(I think that one of possible reasons are clarity of constant number (0)
or that success status is not always expressed by 0)

I tried to use similar macros such as SUCCESS or NO_ERROR,
but it seems that they are not defined in official mainline codes.latest?d=yIl2AUoC8zA latest?i=Y5etFsvi22g:vN2GvftER64:F7zBnMy latest?i=Y5etFsvi22g:vN2GvftER64:V_sGLiP latest?d=qj6IDK7rITs latest?i=Y5etFsvi22g:vN2GvftER64:gIN9vFwY5etFsvi22g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments