* [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon
@ 2015-08-05 5:14 Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c Pradheep Shrinivasan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pradheep Shrinivasan @ 2015-08-05 5:14 UTC (permalink / raw)
To: Jarod Wilson, Mauro Carvalho Chehab, Greg Kroah-Hartman
Cc: linux-media, devel, pradheep
From: pradheep <pradheep.sh@gmail.com>
This patche removes the extra braces found in
drivers/staging/media/lirc/lirc_imon.c to fix the warning thrown by
checkpatch.pl
Signed-off-by: Pradheep Shrinivasan <pradheep.sh@gmail.com>
---
drivers/staging/media/lirc/lirc_imon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c
index 62ec9f7..05d47dc 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -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;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c
2015-08-05 5:14 [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
@ 2015-08-05 5:14 ` Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 1/2] Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:45 ` [PATCH 1/2] staging: media: lirc " Sudip Mukherjee
2 siblings, 0 replies; 4+ messages in thread
From: Pradheep Shrinivasan @ 2015-08-05 5:14 UTC (permalink / raw)
To: Jarod Wilson, Mauro Carvalho Chehab, Greg Kroah-Hartman
Cc: linux-media, devel, Pradheep Shrinivasan
This fix changes the space in the code to tab to fix the ERROR
"ERROR: code indent should use tabs where possible"
Signed-off-by: Pradheep Shrinivasan <pradheep.sh@gmail.com>
---
drivers/staging/media/lirc/lirc_sasem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c
index 8ebee96..c14ca7e 100644
--- a/drivers/staging/media/lirc/lirc_sasem.c
+++ b/drivers/staging/media/lirc/lirc_sasem.c
@@ -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);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/2] Remove the extra braces in if statement of lirc_imon
2015-08-05 5:14 [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c Pradheep Shrinivasan
@ 2015-08-05 5:14 ` Pradheep Shrinivasan
2015-08-05 5:45 ` [PATCH 1/2] staging: media: lirc " Sudip Mukherjee
2 siblings, 0 replies; 4+ messages in thread
From: Pradheep Shrinivasan @ 2015-08-05 5:14 UTC (permalink / raw)
To: Jarod Wilson, Mauro Carvalho Chehab, Greg Kroah-Hartman
Cc: linux-media, devel, pradheep
From: pradheep <pradheep.sh@gmail.com>
This patche removes the extra braces found in
drivers/staging/media/lirc/lirc_imon.c to fix the warning thrown by
checkpatch.pl
Signed-off-by: Pradheep Shrinivasan<pradheep.sh@gmail.com>
---
drivers/staging/media/lirc/lirc_imon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c
index 62ec9f7..05d47dc 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -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;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon
2015-08-05 5:14 [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 1/2] Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
@ 2015-08-05 5:45 ` Sudip Mukherjee
2 siblings, 0 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-08-05 5:45 UTC (permalink / raw)
To: Pradheep Shrinivasan
Cc: Jarod Wilson, Mauro Carvalho Chehab, Greg Kroah-Hartman, devel,
linux-media
On Wed, Aug 05, 2015 at 12:14:55AM -0500, Pradheep Shrinivasan wrote:
> From: pradheep <pradheep.sh@gmail.com>
Dan had previously told you that it is wrong.
Here From: line is only required if you are not able to configure the
email From: header while using some corporate server. But your email
From: header is ok.
regards
sudip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-05 5:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-05 5:14 [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 1/2] Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:45 ` [PATCH 1/2] staging: media: lirc " Sudip Mukherjee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).