diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-15 05:14:54 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-29 17:44:25 -0400 |
commit | e8fd0b9f6f487820a05a46ce3ac4b5df11ad6799 (patch) | |
tree | 7eb58b4805f2b687f20b0bb62af0013af1393553 | |
parent | e55f24ffa936e09673905a9176a8a9d22cf68d40 (diff) |
scsi: fcoe: remove redundant call to skb_transport_header
Pointer fh is being assigned a return value from the call to
skb_transport_header however this value is never read and fh is being
re-assigned immediately afterwards with a new value. Since there are
side-effects from calling skb_transport_header the call is redundant and
can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 00dd47bcbb1e..8e217ab7646e 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1618,7 +1618,6 @@ static inline int fcoe_filter_frames(struct fc_lport *lport, | |||
1618 | else | 1618 | else |
1619 | fr_flags(fp) |= FCPHF_CRC_UNCHECKED; | 1619 | fr_flags(fp) |= FCPHF_CRC_UNCHECKED; |
1620 | 1620 | ||
1621 | fh = (struct fc_frame_header *) skb_transport_header(skb); | ||
1622 | fh = fc_frame_header_get(fp); | 1621 | fh = fc_frame_header_get(fp); |
1623 | if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh->fh_type == FC_TYPE_FCP) | 1622 | if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh->fh_type == FC_TYPE_FCP) |
1624 | return 0; | 1623 | return 0; |