Skip to contentSkip to conversation

staging:media:lirc Remove the extra braces in if statement of lirc_imon

PATCH In review Pradheep Shrinivasan 2 participants 3 messages Aug 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging:media:lirc Remove the extra braces in if statement of lirc_imon

From: pradheep <[email protected]>

This patche removes the extra braces found in drivers/staging/media/lirc/lirc_imon.c to fix the warning thrown by checkpatch.pl

---
 drivers/staging/media/lirc/lirc_imon.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/media/lirc/lirc_imon.c +4 -4
index 62ec9f7..05d47dc 100644
@@ -785,13 +785,13 @@ static int imon_probe(struct usb_interface *interface,
 	}
 
 	driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
-	if (!driver) {
+	if (!driver)
 		goto free_context;
-	}
+
 	rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
-	if (!rbuf) {
+	if (!rbuf)
 		goto free_driver;
-	}
+
 	if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) {
 		dev_err(dev, "%s: lirc_buffer_init failed\n", __func__);
 		goto free_rbuf;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 staging:media:lirc This fix changes the spaces to tab in lirc_sasem.c

This fix changes the space in the code to tab to fix the ERROR "ERROR: code indent should use tabs where possible"

---
 drivers/staging/media/lirc/lirc_sasem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/lirc/lirc_sasem.c +1 -1
index 8ebee96..c14ca7e 100644
@@ -185,7 +185,7 @@ static void deregister_from_lirc(struct sasem_context *context)
 		       __func__, retval);
 	else
 		dev_info(&context->dev->dev,
-		         "Deregistered Sasem driver (minor:%d)\n", minor);
+			 "Deregistered Sasem driver (minor:%d)\n", minor);
 
 }
 
Signature · 1 line
1.9.1
#2 lore raw
In reply to Pradheep Shrinivasan

Normally, I wait overnight between writing a patch and sending it. There is no rush and the delay helps me to be more careful.

The subject is still not perfect. Do:

	git log --oneline drivers/staging/media/lirc/lirc_imon.c
Quoted 1 line · Pradheep Shrinivasan

From: pradheep <[email protected]>

This is still wrong.

regards,
dan carpenter