Repository navigation
Commit f1fd75b
prctl: remove redunant assignment of "error" to zero
Just setting the "error" to error number is enough on failure and It
doesn't require to set "error" variable to zero in each switch case,
since it was already initialized with zero. And also removed return 0
in switch case with break statement
Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Serge E. Hallyn <serge@hallyn.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 6c4088a commit f1fd75b
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
2018 | | - | |
2019 | 2018 | | |
2020 | 2019 | | |
2021 | 2020 | | |
| |||
2029 | 2028 | | |
2030 | 2029 | | |
2031 | 2030 | | |
2032 | | - | |
2033 | 2031 | | |
2034 | 2032 | | |
2035 | 2033 | | |
| |||
2056 | 2054 | | |
2057 | 2055 | | |
2058 | 2056 | | |
2059 | | - | |
2060 | | - | |
2061 | 2057 | | |
2062 | | - | |
2063 | 2058 | | |
2064 | 2059 | | |
2065 | 2060 | | |
2066 | 2061 | | |
2067 | 2062 | | |
2068 | 2063 | | |
2069 | 2064 | | |
2070 | | - | |
| 2065 | + | |
2071 | 2066 | | |
2072 | 2067 | | |
2073 | 2068 | | |
2074 | 2069 | | |
2075 | 2070 | | |
2076 | | - | |
| 2071 | + | |
2077 | 2072 | | |
2078 | 2073 | | |
2079 | 2074 | | |
2080 | 2075 | | |
2081 | 2076 | | |
2082 | 2077 | | |
2083 | | - | |
2084 | 2078 | | |
2085 | 2079 | | |
2086 | 2080 | | |
| |||
2108 | 2102 | | |
2109 | 2103 | | |
2110 | 2104 | | |
2111 | | - | |
2112 | 2105 | | |
2113 | 2106 | | |
2114 | 2107 | | |
| |||
2134 | 2127 | | |
2135 | 2128 | | |
2136 | 2129 | | |
2137 | | - | |
2138 | 2130 | | |
2139 | 2131 | | |
2140 | 2132 | | |
| |||
2153 | 2145 | | |
2154 | 2146 | | |
2155 | 2147 | | |
2156 | | - | |
2157 | 2148 | | |
2158 | 2149 | | |
2159 | 2150 | | |
| |||
0 commit comments