diff options
| author | Rosen Penev <rosenp@gmail.com> | 2020-04-18 21:23:13 -0700 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2020-04-19 14:03:21 -0700 |
| commit | bd89499e07a85b399a345e319e61d0afc5f3088c (patch) | |
| tree | de2c4b7ec1b8f57babf55853669792af238c39c5 /lib | |
| parent | 13ae0352111c67c5a01b5b079c4af2ce48369523 (diff) | |
| download | util-linux-bd89499e07a85b399a345e319e61d0afc5f3088c.tar.gz | |
[clang-tidy] do not return in void functions
Found with readability-redundant-control-flow
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/idcache.c | 1 | ||||
| -rw-r--r-- | lib/randutils.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/idcache.c b/lib/idcache.c index 121992ce6a..55502238d7 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -93,7 +93,6 @@ static void add_id(struct idcache *ic, char *name, unsigned long int id) if (w <= 0) w = ent->name ? strlen(ent->name) : 0; ic->width = ic->width < w ? w : ic->width; - return; } void add_uid(struct idcache *cache, unsigned long int id) diff --git a/lib/randutils.c b/lib/randutils.c index 01a3d09036..ce476f8a73 100644 --- a/lib/randutils.c +++ b/lib/randutils.c @@ -177,7 +177,6 @@ void random_get_bytes(void *buf, size_t nbytes) sizeof(ul_jrand_seed)-sizeof(unsigned short)); } #endif - return; } |
