提交 b42f7b5c 编写于 作者: S Sjur Brændeland 提交者: David S. Miller

caif-hsi: Remove uncecessary assignments

Remove assignment at declaration when not needed.
Signed-off-by: NSjur Brændeland <sjur.brandeland@stericssion.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 90de9bab
...@@ -246,8 +246,8 @@ static int cfhsi_tx_frm(struct cfhsi_desc *desc, struct cfhsi *cfhsi) ...@@ -246,8 +246,8 @@ static int cfhsi_tx_frm(struct cfhsi_desc *desc, struct cfhsi *cfhsi)
/* Check if we can embed a CAIF frame. */ /* Check if we can embed a CAIF frame. */
if (skb->len < CFHSI_MAX_EMB_FRM_SZ) { if (skb->len < CFHSI_MAX_EMB_FRM_SZ) {
struct caif_payload_info *info; struct caif_payload_info *info;
int hpad = 0; int hpad;
int tpad = 0; int tpad;
/* Calculate needed head alignment and tail alignment. */ /* Calculate needed head alignment and tail alignment. */
info = (struct caif_payload_info *)&skb->cb; info = (struct caif_payload_info *)&skb->cb;
...@@ -282,8 +282,8 @@ static int cfhsi_tx_frm(struct cfhsi_desc *desc, struct cfhsi *cfhsi) ...@@ -282,8 +282,8 @@ static int cfhsi_tx_frm(struct cfhsi_desc *desc, struct cfhsi *cfhsi)
pfrm = desc->emb_frm + CFHSI_MAX_EMB_FRM_SZ; pfrm = desc->emb_frm + CFHSI_MAX_EMB_FRM_SZ;
while (nfrms < CFHSI_MAX_PKTS) { while (nfrms < CFHSI_MAX_PKTS) {
struct caif_payload_info *info; struct caif_payload_info *info;
int hpad = 0; int hpad;
int tpad = 0; int tpad;
if (!skb) if (!skb)
skb = cfhsi_dequeue(cfhsi); skb = cfhsi_dequeue(cfhsi);
...@@ -573,7 +573,7 @@ static int cfhsi_rx_pld(struct cfhsi_desc *desc, struct cfhsi *cfhsi) ...@@ -573,7 +573,7 @@ static int cfhsi_rx_pld(struct cfhsi_desc *desc, struct cfhsi *cfhsi)
struct sk_buff *skb; struct sk_buff *skb;
u8 *dst = NULL; u8 *dst = NULL;
u8 *pcffrm = NULL; u8 *pcffrm = NULL;
int len = 0; int len;
/* CAIF frame starts after head padding. */ /* CAIF frame starts after head padding. */
pcffrm = pfrm + *pfrm + 1; pcffrm = pfrm + *pfrm + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册