Commit 18f49e88 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix up compiler warning in usblp driver caused by previous patches.

parent 4c15dcb4
...@@ -673,8 +673,12 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t ...@@ -673,8 +673,12 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t
usblp->writeurb->dev = usblp->dev; usblp->writeurb->dev = usblp->dev;
usblp->wcomplete = 0; usblp->wcomplete = 0;
if (err = usb_submit_urb(usblp->writeurb, GFP_KERNEL)) { err = usb_submit_urb(usblp->writeurb, GFP_KERNEL);
count = err != -ENOMEM ? -EIO : (writecount ? writecount : -ENOMEM); if (err) {
if (err != -ENOMEM)
count = -EIO;
else
count = writecount ? writecount : -ENOMEM;
up (&usblp->sem); up (&usblp->sem);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment