mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
net: Add parens to macro PSEUDO_HDR_SIZE
Smatch reports a warning about possibly needing parens around the macro PSEUDO_HDR_SIZE. This will not affect the one place the macro is used but add the parens anyway as it is good practice to have them and if the macro is used again in the future it could possibly matter then. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
parent
f5e968a28e
commit
31a8d2d340
@ -235,7 +235,7 @@ struct pseudo_hdr {
|
||||
u16 len;
|
||||
} __packed;
|
||||
|
||||
#define PSEUDO_HDR_SIZE (sizeof(struct pseudo_hdr)) - PSEUDO_PAD_SIZE
|
||||
#define PSEUDO_HDR_SIZE ((sizeof(struct pseudo_hdr)) - PSEUDO_PAD_SIZE)
|
||||
|
||||
/**
|
||||
* union tcp_build_pkt - union for building TCP/IP packet.
|
||||
|
Loading…
Reference in New Issue
Block a user