mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 11:26:22 -04:00
net: iosm: remove an unnecessary NULL check
The address of &ipc_mux->ul_adb can't be NULL because it points to the
middle of a non-NULL struct.
Fixes: 9413491e20 ("net: iosm: encode or decode datagram")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1a1100d53f
commit
d5fff4629b
@@ -477,7 +477,7 @@ static void ipc_mux_ul_adgh_finish(struct iosm_mux *ipc_mux)
|
||||
long long bytes;
|
||||
char *str;
|
||||
|
||||
if (!ul_adb || !ul_adb->dest_skb) {
|
||||
if (!ul_adb->dest_skb) {
|
||||
dev_err(ipc_mux->dev, "no dest skb");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user