Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ub: Cosmetics

Fix a few comments and printk statements.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Pete Zaitcev and committed by
Greg Kroah-Hartman
9029b174 0da13c8c

+6 -9
+6 -9
drivers/block/ub.c
··· 1309 1309 ub_state_done(sc, cmd, -EIO); 1310 1310 1311 1311 } else { 1312 - printk(KERN_WARNING "%s: " 1313 - "wrong command state %d\n", 1312 + printk(KERN_WARNING "%s: wrong command state %d\n", 1314 1313 sc->name, cmd->state); 1315 1314 ub_state_done(sc, cmd, -EINVAL); 1316 1315 return; ··· 1532 1533 return; 1533 1534 } 1534 1535 if (cmd->state != UB_CMDST_SENSE) { 1535 - printk(KERN_WARNING "%s: " 1536 - "sense done with bad cmd state %d\n", 1536 + printk(KERN_WARNING "%s: sense done with bad cmd state %d\n", 1537 1537 sc->name, cmd->state); 1538 1538 return; 1539 1539 } ··· 1736 1738 } 1737 1739 1738 1740 /* 1739 - * This is called once a new disk was seen by the block layer or by ub_probe(). 1741 + * This is called by check_disk_change if we reported a media change. 1740 1742 * The main onjective here is to discover the features of the media such as 1741 1743 * the capacity, read-only status, etc. USB storage generally does not 1742 1744 * need to be spun up, but if we needed it, this would be the place. ··· 2152 2154 } 2153 2155 2154 2156 if (ep_in == NULL || ep_out == NULL) { 2155 - printk(KERN_NOTICE "%s: failed endpoint check\n", 2156 - sc->name); 2157 + printk(KERN_NOTICE "%s: failed endpoint check\n", sc->name); 2157 2158 return -ENODEV; 2158 2159 } 2159 2160 ··· 2369 2372 spin_unlock_irqrestore(&ub_lock, flags); 2370 2373 2371 2374 /* 2372 - * Fence stall clearnings, operations triggered by unlinkings and so on. 2375 + * Fence stall clearings, operations triggered by unlinkings and so on. 2373 2376 * We do not attempt to unlink any URBs, because we do not trust the 2374 2377 * unlink paths in HC drivers. Also, we get -84 upon disconnect anyway. 2375 2378 */ ··· 2432 2435 spin_unlock_irqrestore(sc->lock, flags); 2433 2436 2434 2437 /* 2435 - * There is virtually no chance that other CPU runs times so long 2438 + * There is virtually no chance that other CPU runs a timeout so long 2436 2439 * after ub_urb_complete should have called del_timer, but only if HCD 2437 2440 * didn't forget to deliver a callback on unlink. 2438 2441 */