mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-27 15:21:41 +07:00
staging: usbip: reformat function stub_recv_cmd_unlink()
Reformat function stub_recv_cmd_unlink() to improve readability. Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de> Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
69f452635c
commit
c5a73ee2d1
@ -228,15 +228,15 @@ static void tweak_special_requests(struct urb *urb)
|
|||||||
static int stub_recv_cmd_unlink(struct stub_device *sdev,
|
static int stub_recv_cmd_unlink(struct stub_device *sdev,
|
||||||
struct usbip_header *pdu)
|
struct usbip_header *pdu)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
struct stub_priv *priv;
|
struct stub_priv *priv;
|
||||||
|
|
||||||
spin_lock_irqsave(&sdev->priv_lock, flags);
|
spin_lock_irqsave(&sdev->priv_lock, flags);
|
||||||
|
|
||||||
list_for_each_entry(priv, &sdev->priv_init, list) {
|
list_for_each_entry(priv, &sdev->priv_init, list) {
|
||||||
if (priv->seqnum == pdu->u.cmd_unlink.seqnum) {
|
if (priv->seqnum != pdu->u.cmd_unlink.seqnum)
|
||||||
int ret;
|
continue;
|
||||||
|
|
||||||
dev_info(&priv->urb->dev->dev, "unlink urb %p\n",
|
dev_info(&priv->urb->dev->dev, "unlink urb %p\n",
|
||||||
priv->urb);
|
priv->urb);
|
||||||
@ -281,9 +281,9 @@ static int stub_recv_cmd_unlink(struct stub_device *sdev,
|
|||||||
dev_err(&priv->urb->dev->dev,
|
dev_err(&priv->urb->dev->dev,
|
||||||
"failed to unlink a urb %p, ret %d\n",
|
"failed to unlink a urb %p, ret %d\n",
|
||||||
priv->urb, ret);
|
priv->urb, ret);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
usbip_dbg_stub_rx("seqnum %d is not pending\n",
|
usbip_dbg_stub_rx("seqnum %d is not pending\n",
|
||||||
pdu->u.cmd_unlink.seqnum);
|
pdu->u.cmd_unlink.seqnum);
|
||||||
|
Loading…
Reference in New Issue
Block a user