diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:23:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:59:51 +0200 |
commit | 1f6b411372076426c0faf0bb350437fb4d82931f (patch) | |
tree | 32a52b3e2bb04731cc857b738e989531a4144516 /src/udev/cdrom_id/cdrom_id.c | |
parent | 94c156cd452424ea59931920df2454d9da7cb774 (diff) |
tree-wide: update empty-if coccinelle script to cover empty-while and more
Let's also clean up single-line while and for blocks.
Diffstat (limited to 'src/udev/cdrom_id/cdrom_id.c')
-rw-r--r-- | src/udev/cdrom_id/cdrom_id.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c index 775da0355d..e6a9e354ff 100644 --- a/src/udev/cdrom_id/cdrom_id.c +++ b/src/udev/cdrom_id/cdrom_id.c @@ -565,9 +565,8 @@ static int cd_profiles(struct udev *udev, int fd) if (len > sizeof(features)) { log_debug("can not get features in a single query, truncating"); len = sizeof(features); - } else if (len <= 8) { + } else if (len <= 8) len = sizeof(features); - } /* Now get the full feature buffer */ scsi_cmd_init(udev, &sc); |