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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Markus Elfring 2017-05-07 13:43:50 +02:00 committed by John Johansen
parent d68c51e0b3
commit 0ff3d97f76
1 changed files with 3 additions and 4 deletions

View File

@ -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_profile *profile = aa_get_profile_rcu(&proxy->profile);
if (profile->rawdata->abi) {
seq_printf(seq, "v%d", profile->rawdata->abi);
seq_puts(seq, "\n");
}
if (profile->rawdata->abi)
seq_printf(seq, "v%d\n", profile->rawdata->abi);
aa_put_profile(profile);
return 0;