Commit 0ff3d97f authored by Markus Elfring's avatar Markus Elfring Committed by John Johansen

apparmorfs: Combine two function calls into one in aa_fs_seq_raw_abi_show()

A bit of data was put into a sequence by two separate function calls.
Print the same data by a single function call instead.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent d68c51e0
...@@ -572,10 +572,9 @@ static int aa_fs_seq_raw_abi_show(struct seq_file *seq, void *v) ...@@ -572,10 +572,9 @@ static int aa_fs_seq_raw_abi_show(struct seq_file *seq, void *v)
struct aa_proxy *proxy = seq->private; struct aa_proxy *proxy = seq->private;
struct aa_profile *profile = aa_get_profile_rcu(&proxy->profile); struct aa_profile *profile = aa_get_profile_rcu(&proxy->profile);
if (profile->rawdata->abi) { if (profile->rawdata->abi)
seq_printf(seq, "v%d", profile->rawdata->abi); seq_printf(seq, "v%d\n", profile->rawdata->abi);
seq_puts(seq, "\n");
}
aa_put_profile(profile); aa_put_profile(profile);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment