summaryrefslogtreecommitdiff
path: root/dmidecode.c
diff options
context:
space:
mode:
authorkhali <khali>2015-05-12 15:58:20 +0000
committerkhali <khali>2015-05-12 15:58:20 +0000
commit29c1ee0b8a146fcfeb9a4ca28283ae820352c6f8 (patch)
treee7297ef41ce28b8b40bf456510b91219dab32d23 /dmidecode.c
parentfbae0a5f76371a2f2c9d1155979329676ad802e4 (diff)
downloaddmidecode-29c1ee0b8a146fcfeb9a4ca28283ae820352c6f8.tar.gz
dmidecode: Remove extra blank line after hidden type 40
When we don't decode type 40 in quiet mode, we shouldn't print the blank line after it either.
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dmidecode.c b/dmidecode.c
index 1f948f0..df3a33e 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -4263,8 +4263,9 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
case 40: /* 7.41 Additional Information */
if (h->length < 0x0B) break;
- if (!(opt.flags & FLAG_QUIET))
- dmi_additional_info(h, "");
+ if (opt.flags & FLAG_QUIET)
+ return;
+ dmi_additional_info(h, "");
break;
case 41: /* 7.42 Onboard Device Extended Information */