Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Commit

Permalink
msm: ipa_v2: Fix memset-elt-size warning
Browse files Browse the repository at this point in the history
Fixes the following GCC 7.3.0 warning: ‘memset’ used with length equal
to number of elements without multiplication by element size
[-Wmemset-elt-size]

Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Albert I <[email protected]>
  • Loading branch information
nathanchance authored and johnmart19 committed Feb 11, 2021
1 parent a327f04 commit df8a9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/msm/ipa/ipa_v2/ipa_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int __ipa_generate_rt_hw_rule_v2(enum ipa_ip_type ip,
struct ipa_hdr_entry *hdr_entry;

if (buf == NULL) {
memset(tmp, 0, (IPA_RT_FLT_HW_RULE_BUF_SIZE/4));
memset(tmp, 0, sizeof(tmp));
buf = (u8 *)tmp;
}

Expand Down

0 comments on commit df8a9f1

Please sign in to comment.