prlimit: remove bogus instructions
PATCH 1/1 prlimit: remove bogus instructions
From: Davidlohr Bueso <[email protected]>
usage() is noreturn!
Signed-off-by Davidlohr Bueso <[email protected]>
--- sys-utils/prlimit.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
sys-utils/prlimit.c +0 -2
@@ -585,7 +585,6 @@ int main(int argc, char **argv)break ;case 'h' :usage (stdout); -break ;case 'o' : ncolumns = string_to_idarray(optarg, columns, ARRAY_SIZE(columns),
@@ -609,7 +608,6 @@ int main(int argc, char **argv)default :usage (stderr); -break ; } }if (argc > optind && pid)
Signature · 1 line
1.7.4.1
Quoted 2 lines · Davidlohr Bueso
sys-utils/prlimit.c| 2 --1 files changed, 0 insertions(+), 2 deletions(-)
Applied, thanks.
BTW, some (including really expensive) static analyzers have no clue about 'noreturn' function attribute :-)
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com