提交 d5fff462 编写于 作者: D Dan Carpenter 提交者: David S. Miller

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: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NM Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1a1100d5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册