| .. | .. |
|---|
| 202 | 202 | |
|---|
| 203 | 203 | static int do_rebind(char *busid, struct bus_id_priv *busid_priv) |
|---|
| 204 | 204 | { |
|---|
| 205 | | - int ret; |
|---|
| 205 | + int ret = 0; |
|---|
| 206 | 206 | |
|---|
| 207 | 207 | /* device_attach() callers should hold parent lock for USB */ |
|---|
| 208 | 208 | if (busid_priv->udev->dev.parent) |
|---|
| .. | .. |
|---|
| 210 | 210 | ret = device_attach(&busid_priv->udev->dev); |
|---|
| 211 | 211 | if (busid_priv->udev->dev.parent) |
|---|
| 212 | 212 | device_unlock(busid_priv->udev->dev.parent); |
|---|
| 213 | | - if (ret < 0) { |
|---|
| 213 | + if (ret < 0) |
|---|
| 214 | 214 | dev_err(&busid_priv->udev->dev, "rebind failed\n"); |
|---|
| 215 | | - return ret; |
|---|
| 216 | | - } |
|---|
| 217 | | - return 0; |
|---|
| 215 | + return ret; |
|---|
| 218 | 216 | } |
|---|
| 219 | 217 | |
|---|
| 220 | 218 | static void stub_device_rebind(void) |
|---|