git: 1def31df760d - main - lpr: Remove useless return at the end of void function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Mar 2023 15:12:44 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=1def31df760df6bfcc806c793a1c0799d4d43245
commit 1def31df760df6bfcc806c793a1c0799d4d43245
Author: Elyes Haouas <ehaouas@noos.fr>
AuthorDate: 2023-03-02 14:59:07 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-03-02 15:01:28 +0000
lpr: Remove useless return at the end of void function
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/656
---
usr.sbin/lpr/common_source/common.c | 2 --
usr.sbin/lpr/lpc/cmds.c | 4 ----
2 files changed, 6 deletions(-)
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c
index b20855515adb..21735fe4dfc9 100644
--- a/usr.sbin/lpr/common_source/common.c
+++ b/usr.sbin/lpr/common_source/common.c
@@ -554,8 +554,6 @@ trstat_init(struct printer *pp, const char *fname, int filenum)
* save those away along with the file-number */
pp->jobdfnum = filenum;
lpd_gettime(&pp->tr_start, pp->tr_timestr, (size_t)TIMESTR_SIZE);
-
- return;
}
void
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c
index c0debb1fcbcd..ad147a18a8c7 100644
--- a/usr.sbin/lpr/lpc/cmds.c
+++ b/usr.sbin/lpr/lpc/cmds.c
@@ -644,8 +644,6 @@ clean_gi(int argc, char *argv[])
generic_initerr = 1;
}
}
-
- return;
}
void
@@ -656,8 +654,6 @@ tclean_gi(int argc, char *argv[])
/* (...and the fact that 'clean' is priv and 'tclean' is not) */
clean_gi(argc, argv);
cln_testonly = 1;
-
- return;
}
void