diff options
| author | 杨威 <[email protected]> | 2023-01-11 18:07:11 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2023-01-11 20:27:58 +0800 |
| commit | 660247773e03be49b107dbe8c58197bc14549edf (patch) | |
| tree | b3b7a081002c3d54e584de34c9893707ca301186 /src/common | |
| parent | 8393d32ba6aeec6ff5a1a3143cb3fde2b88a10a4 (diff) | |
🌈 style(packet_io): reduce lint warning
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/linux_kernel_jhash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/linux_kernel_jhash.c b/src/common/linux_kernel_jhash.c index 39c0500..3ca884e 100644 --- a/src/common/linux_kernel_jhash.c +++ b/src/common/linux_kernel_jhash.c @@ -180,7 +180,10 @@ u32 sapp_jhash_4words(u32 a, u32 b, u32 c, u32 initval, u32 *out_val) __jhash_final(a, b, c);
- *out_val = b;
+ if(out_val != NULL)
+ {
+ *out_val = b;
+ }
return c;
}
|
