msm: ipa3: Return if RT table size is 0

If RT table size is zero, retrun to prevent
further process.

Change-Id: Ic671b1760969e6a5f5e896f5334289061b02d256
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
This commit is contained in:
Mohammed Javid 2018-09-07 17:26:21 +05:30 committed by Timi
parent 3eac51aed0
commit 5d242f188c

View file

@ -329,8 +329,8 @@ static int ipa_prep_rt_tbl_for_cmt(enum ipa_ip_type ip,
if ((tbl->sz[IPA_RULE_HASHABLE] +
tbl->sz[IPA_RULE_NON_HASHABLE]) == 0) {
WARN_ON_RATELIMIT_IPA(1);
IPAERR_RL("rt tbl %s is with zero total size\n", tbl->name);
IPADBG("rt tbl %s is with zero total size\n", tbl->name);
return 0;
}
hdr_width = ipahal_get_hw_tbl_hdr_width();