forked from luck/tmp_suning_uos_patched
usb: gadget: udc: clean up a printk
We already know what "value" is, so there is no need to check. It puzzles static checkers to have the unneeded condition. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
135b3c4304
commit
5e841efef7
@ -881,8 +881,8 @@ static int ep_set_halt(struct bdc_ep *ep, u32 value)
|
||||
|
||||
ret = bdc_ep_set_stall(bdc, ep->ep_num);
|
||||
if (ret)
|
||||
dev_err(bdc->dev, "failed to %s STALL on %s\n",
|
||||
value ? "set" : "clear", ep->name);
|
||||
dev_err(bdc->dev, "failed to set STALL on %s\n",
|
||||
ep->name);
|
||||
else
|
||||
ep->flags |= BDC_EP_STALL;
|
||||
} else {
|
||||
@ -890,8 +890,8 @@ static int ep_set_halt(struct bdc_ep *ep, u32 value)
|
||||
dev_dbg(bdc->dev, "Before Clear\n");
|
||||
ret = bdc_ep_clear_stall(bdc, ep->ep_num);
|
||||
if (ret)
|
||||
dev_err(bdc->dev, "failed to %s STALL on %s\n",
|
||||
value ? "set" : "clear", ep->name);
|
||||
dev_err(bdc->dev, "failed to clear STALL on %s\n",
|
||||
ep->name);
|
||||
else
|
||||
ep->flags &= ~BDC_EP_STALL;
|
||||
dev_dbg(bdc->dev, "After Clear\n");
|
||||
|
Loading…
Reference in New Issue
Block a user