infiniband/cxgb4: remove unneeded assignment
Subsystems (3)
PATCH 1/2 infiniband/cxgb4: remove unneeded assignment
We don't need to assign rpl here, we do that later on.
drivers/infiniband/hw/cxgb4/cm.c +1 -1
@@ -2242,7 +2242,7 @@ static void process_work(struct work_struct *work) {struct sk_buff *skb =NULL ;struct c4iw_dev *dev; -struct cpl_act_establish *rpl =cplhdr (skb); +struct cpl_act_establish *rpl;unsigned int opcode;int ret;
Looks fine to me... in fact I don't see how this could have avoided a NULL deref here unless the compiler is already optimizing out this assignment, since two lines above is
struct sk_buff *skb = NULL;
before we do
- struct cpl_act_establish *rpl = cplhdr(skb);
Steve?
Signature · 2 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html
A message that is not in the archive (sent off-list or not yet received): adaiq61qesj.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org
Quoted 10 lines · Roland Dreier
Looks fine to me... in fact I don't see how this could have avoided a NULL deref here unless the compiler is already optimizing out this assignment, since two lines above is
struct
sk_buff*skb = NULL;before we do
drivers/infiniband/hw/cxgb4/cm.c +0
-1-struct cpl_act_establish *rpl =cplhdr (skb);
Quoted 2 lines
Steve?
Looks ok.
Roland Dreier
Appliedthanks, applied.
Signature · 2 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html