1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

coccinelle: additional errno.cocci hunk

rewrites:
  log_error_errno(errno, ...);
  return -errno;
into:
  return log_error_errno(errno, ...);
This commit is contained in:
Michal Schmidt 2015-11-05 13:44:18 +01:00
parent 351825cc73
commit b3e3bb19a0

View File

@ -23,3 +23,10 @@ expression e;
+ return + return
log_LEVEL_errno(e, ...); log_LEVEL_errno(e, ...);
- return r; - return r;
@@
identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
expression e;
@@
+ return
log_LEVEL_errno(e, ...);
- return -e;