diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-22 16:25:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-22 16:51:56 +0100 |
commit | e0b4ed019c72b26295957b44067b1d6223138106 (patch) | |
tree | 1f4fca0029b939ee54749183773f8e0980d21e71 /drivers/net/caif | |
parent | cxgb4: add geneve offload support for T6 (diff) | |
download | linux-e0b4ed019c72b26295957b44067b1d6223138106.tar.xz linux-e0b4ed019c72b26295957b44067b1d6223138106.zip |
net: caif: remove redundant re-assignment of pointer pfrm
The pointer pfrm is initialized and then later re-assigned the same
value and hence the second assignment is redundant and can be removed.
Cleans up clang warning:
drivers/net/caif/caif_hsi.c:222:6: warning: Value stored to 'pfrm'
during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif')
-rw-r--r-- | drivers/net/caif/caif_hsi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/caif/caif_hsi.c b/drivers/net/caif/caif_hsi.c index b8029ea03307..433a14b9f731 100644 --- a/drivers/net/caif/caif_hsi.c +++ b/drivers/net/caif/caif_hsi.c @@ -264,7 +264,6 @@ static int cfhsi_tx_frm(struct cfhsi_desc *desc, struct cfhsi *cfhsi) } /* Create payload CAIF frames. */ - pfrm = desc->emb_frm + CFHSI_MAX_EMB_FRM_SZ; while (nfrms < CFHSI_MAX_PKTS) { struct caif_payload_info *info; int hpad; |