mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
usb: gadget: s3c-hsudc: remove redundant condition
This patch removes redundant condition. (!A || (A && B)) is the same as (!A || B). Tested by compilation only. Caught by cppcheck. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
95ca961c75
commit
ca07099460
@ -569,7 +569,7 @@ static int s3c_hsudc_handle_reqfeat(struct s3c_hsudc *hsudc,
|
||||
hsep = &hsudc->ep[ep_num];
|
||||
switch (le16_to_cpu(ctrl->wValue)) {
|
||||
case USB_ENDPOINT_HALT:
|
||||
if (set || (!set && !hsep->wedge))
|
||||
if (set || !hsep->wedge)
|
||||
s3c_hsudc_set_halt(&hsep->ep, set);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user