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

Commit da4e0693 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 f5f31790
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/ipa.h>
@@ -1853,6 +1853,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;