Commit d5fff462 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

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: 9413491e ("net: iosm: encode or decode datagram")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarM Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1a1100d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}