diff options
| author | Dan Carpenter <[email protected]> | 2021-06-19 13:51:26 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-21 19:17:55 +0000 |
| commit | d5fff4629beadf262559cae79012ce0dee268c1d (patch) | |
| tree | ee2b851b1f0c5968791dcb48b62b92b6c410b769 /drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | |
| parent | net/smc: Fix ENODATA tests in smc_nl_get_fback_stats() (diff) | |
| download | kernel-d5fff4629beadf262559cae79012ce0dee268c1d.tar.gz kernel-d5fff4629beadf262559cae79012ce0dee268c1d.zip | |
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: 9413491e20e1 ("net: iosm: encode or decode datagram")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: M Chetan Kumar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux_codec.c')
| -rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c index fbf3cab3394c..e634ffc6ec08 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c +++ b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c @@ -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; } |
