Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56fa920a authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

msm: ipa: Pad IPA FnR rule extra word only when needed



If extra word is null, padding logic will generate
a warning while null extra word is legitimate.

Change-Id: I2204a7a6bbf148890bfbc0d2c001d43f7407314a
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 5598d766
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1860,6 +1860,7 @@ static int ipa_fltrt_generate_hw_rule_bdy_from_eq(
	if (attrib->fl_eq_present)
		rest = ipa_write_32(attrib->fl_eq & 0xFFFFF, rest);

	if (extra)
		extra = ipa_pad_to_64(extra);
	rest = ipa_pad_to_64(rest);
	*buf = rest;