mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] char: lp: Fix spelling mistake and add spaces
@ 2022-07-05  6:15 Zhang Jiaming
  2022-07-05  6:25 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Jiaming @ 2022-07-05  6:15 UTC (permalink / raw)
  To: arnd, gregkh; +Cc: linux-kernel, liqiong, renyu, Zhang Jiaming

Fix spelling of doesn' t.
Add spaces around '=' and ','.

Signed-off-by: Zhang Jiaming <jiaming@nfschina.com>
---
 drivers/char/lp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 38aad99ebb61..214fb037fa76 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -26,7 +26,7 @@
  * be still BUSY. This is needed at least with Epson Stylus Color. To enable
  * the new TRUST_IRQ mode read the `LP OPTIMIZATION' section below...
  * Fixed the irq on the rising edge of the strobe case.
- * Obsoleted the CAREFUL flag since a printer that doesn' t work with
+ * Obsoleted the CAREFUL flag since a printer that doesn't work with
  * CAREFUL will block a bit after in lp_check_status().
  *				Andrea Arcangeli, 15 Oct 1998
  * Obsoleted and removed all the lowlevel stuff implemented in the last
@@ -418,7 +418,7 @@ static ssize_t lp_read(struct file *file, char __user *buf,
 		       size_t count, loff_t *ppos)
 {
 	DEFINE_WAIT(wait);
-	unsigned int minor=iminor(file_inode(file));
+	unsigned int minor = iminor(file_inode(file));
 	struct parport *port = lp_table[minor].dev->port;
 	ssize_t retval = 0;
 	char *kbuf = lp_table[minor].lp_buffer;
@@ -965,7 +965,7 @@ static void lp_attach(struct parport *port)
 		    port->probe_info[0].class != PARPORT_CLASS_PRINTER)
 			return;
 		if (lp_count == LP_NO) {
-			printk(KERN_INFO "lp: ignoring parallel port (max. %d)\n",LP_NO);
+			printk(KERN_INFO "lp: ignoring parallel port (max. %d)\n", LP_NO);
 			return;
 		}
 		for (i = 0; i < LP_NO; i++)
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-05  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05  6:15 [PATCH] char: lp: Fix spelling mistake and add spaces Zhang Jiaming
2022-07-05  6:25 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®