login
Header Space

 
 

firmware_sample_driver.c: fix coding style

Previous thread: fix comments in sound/core.h (fwd) by Pavel Machek on Tuesday, April 1, 2008 - 7:40 am. (6 messages)

Next thread: [RFC PATCH 0/3] freeze feature ver 1.1 by Takashi Sato on Tuesday, April 1, 2008 - 8:16 am. (1 message)
To: kernel list <linux-kernel@...>, Andrew Morton <akpm@...>, Trivial patch monkey <trivial@...>
Date: Tuesday, April 1, 2008 - 6:55 am

Fix coding style in firmware_sample_driver...

Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;

diff --git a/Documentation/firmware_class/firmware_sample_driver.c b/Documentation/firmware_class/firmware_sample_driver.c
index 6865cbe..600cdd9 100644
--- a/Documentation/firmware_class/firmware_sample_driver.c
+++ b/Documentation/firmware_class/firmware_sample_driver.c
@@ -34,8 +34,7 @@ static void sample_probe_default(void)
         const struct firmware *fw_entry;
 	printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
 
-        if(request_firmware(&amp;fw_entry, "sample_driver_fw", &amp;ghost_device)!=0)
-	{
+        if (request_firmware(&amp;fw_entry, "sample_driver_fw", &amp;ghost_device)!=0) {
 		printk(KERN_ERR
 		       "firmware_sample_driver: Firmware not available\n");
 		return;
@@ -56,8 +55,7 @@ static void sample_probe_specific(void)
 
 	printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
 
-        if(request_firmware(NULL, "sample_driver_fw", &amp;ghost_device)!=0)
-	{
+        if (request_firmware(NULL, "sample_driver_fw", &amp;ghost_device)!=0) {
 		printk(KERN_ERR
 		       "firmware_sample_driver: Firmware load failed\n");
 		return;
@@ -70,7 +68,7 @@ static void sample_probe_specific(void)
 }
 static void sample_probe_async_cont(const struct firmware *fw, void *context)
 {
-	if(!fw){
+	if (!fw) {
 		printk(KERN_ERR
 		       "firmware_sample_driver: firmware load failed\n");
 		return;
@@ -88,9 +86,8 @@ static void sample_probe_async(void)
 					 "sample_driver_fw", &amp;ghost_device,
 					 "my device pointer",
 					 sample_probe_async_cont);
-	if(error){
-		printk(KERN_ERR 
-		       "firmware_sample_driver:"
+	if (error) {
+		printk(KERN_ERR "firmware_sample_driver:"
 		       " request_firmware_nowait failed\n");
 	}
 }
@@ -105,6 +102,7 @@ static int sample_init(void)
 	sample_probe_async();
 	return 0;
 }
+
 static void __exit sample_exit(void)
 {
 }

-- 
(english) [ message continues ]
" title="http://www.liv...">http://www.liv...
To: Pavel Machek <pavel@...>
Cc: kernel list <linux-kernel@...>, Andrew Morton <akpm@...>, Trivial patch monkey <trivial@...>
Date: Monday, April 21, 2008 - 5:49 pm

I've added this patch to the trivial tree.
Thanks Pavel.

--
Previous thread: fix comments in sound/core.h (fwd) by Pavel Machek on Tuesday, April 1, 2008 - 7:40 am. (6 messages)

Next thread: [RFC PATCH 0/3] freeze feature ver 1.1 by Takashi Sato on Tuesday, April 1, 2008 - 8:16 am. (1 message)
speck-geostationary