usb: dwc3: gadget: remove known conditions
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Mar 2014 11:20:22 +0000 (14:20 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 7 Mar 2014 16:03:24 +0000 (10:03 -0600)
We know what "value" is and it upsets static checkers that we appear to
have doubts about it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 4af75d0e53dca9b5e255d975af1cb8848b2eadd3..a740eac74d56d502675107f03ffbd324e85f1f63 100644 (file)
@@ -1233,8 +1233,7 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value)
                ret = dwc3_send_gadget_ep_cmd(dwc, dep->number,
                        DWC3_DEPCMD_SETSTALL, &params);
                if (ret)
-                       dev_err(dwc->dev, "failed to %s STALL on %s\n",
-                                       value ? "set" : "clear",
+                       dev_err(dwc->dev, "failed to set STALL on %s\n",
                                        dep->name);
                else
                        dep->flags |= DWC3_EP_STALL;
@@ -1242,8 +1241,7 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value)
                ret = dwc3_send_gadget_ep_cmd(dwc, dep->number,
                        DWC3_DEPCMD_CLEARSTALL, &params);
                if (ret)
-                       dev_err(dwc->dev, "failed to %s STALL on %s\n",
-                                       value ? "set" : "clear",
+                       dev_err(dwc->dev, "failed to clear STALL on %s\n",
                                        dep->name);
                else
                        dep->flags &= ~(DWC3_EP_STALL | DWC3_EP_WEDGE);