diff options
author | Marcin Ciupak <marcin.s.ciupak@gmail.com> | 2017-08-17 17:00:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-18 15:57:15 -0700 |
commit | e221b2b11bdc3f5b0a42165422335044c472964b (patch) | |
tree | 96f934961bda321dcbd428a5d9cdc68b9f1a4fc9 /drivers/staging/android/Makefile | |
parent | f2aee92d1865d8ff49fa7d715be638c849c650cf (diff) |
staging: pi433: replace INVALID_PARAM macro with inline code
The following macro:
\#define INVALID_PARAM
{ \
dev_dbg(&spi->dev, "set: illegal input param"); \
return -EINVAL; \
}
affects control flow by having return statement. This is against
Linux Kernel Coding Style and should be avoided and therefore
this macro is replaced by inline code.
Additionally following 3 minor issues:
ERROR: code indent should use tabs where possible
ERROR: spaces required around that '!=' (ctx:VxV)
ERROR: space prohibited before that close parenthesis ')'
were fiexed inline.
Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/Makefile')
0 files changed, 0 insertions, 0 deletions