All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixed atleast coding style issues relating spaces
@ 2012-04-21 21:14 Jeffrin Jose
  2012-04-21 21:19 ` Jesper Juhl
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrin Jose @ 2012-04-21 21:14 UTC (permalink / raw)
  To: tiwai; +Cc: linux-kernel, ahiliation

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

hello 

I have fixed atleast coding style issues relating
spaces in file sound/usb/card.c

Please see attachment.

/Jeffrin
-- 
software engineer
Bohr Lab
department of computer science
Rajagiri school of engineering and technology.

[-- Attachment #2: 0007-sound-Fixed-atleast-coding-style-issue-relating-spac.patch --]
[-- Type: text/x-diff, Size: 2054 bytes --]

>From 62fffec818ecc3df83f6c6a274512ab85579dfde Mon Sep 17 00:00:00 2001
From: Jeffrin Jose <ahiliation@yahoo.co.in>
Date: Sun, 22 Apr 2012 02:31:38 +0530
Subject: [PATCH 7/7] sound:Fixed atleast coding style issue relating spaces.

Fixed atleast coding style issues relating spaces
in the file sound/usb/card.c
Signed-off-by: Jeffrin Jose <ahiliation@yahoo.co.in>
---
 sound/usb/card.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/usb/card.c b/sound/usb/card.c
index 4a7be7b..b664eb8 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -186,7 +186,7 @@ static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int int
 		return -EINVAL;
 	}
 
-	if (! snd_usb_parse_audio_interface(chip, interface)) {
+	if (!snd_usb_parse_audio_interface(chip, interface)) {
 		usb_set_interface(dev, interface, 0); /* reset the current interface */
 		usb_driver_claim_interface(&usb_audio_driver, iface, (void *)-1L);
 		return -EINVAL;
@@ -331,7 +331,7 @@ static int snd_usb_audio_create(struct usb_device *dev, int idx,
 	}
 
 	chip = kzalloc(sizeof(*chip), GFP_KERNEL);
-	if (! chip) {
+	if (!chip) {
 		snd_card_free(card);
 		return -ENOMEM;
 	}
@@ -474,12 +474,12 @@ snd_usb_audio_probe(struct usb_device *dev,
 			break;
 		}
 	}
-	if (! chip) {
+	if (!chip) {
 		/* it's a fresh one.
 		 * now look for an empty slot and create a new card instance
 		 */
 		for (i = 0; i < SNDRV_CARDS; i++)
-			if (enable[i] && ! usb_chip[i] &&
+			if (enable[i] && !usb_chip[i] &&
 			    (vid[i] == -1 || vid[i] == USB_ID_VENDOR(id)) &&
 			    (pid[i] == -1 || pid[i] == USB_ID_PRODUCT(id))) {
 				if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) {
@@ -687,7 +687,7 @@ err_out:
 #define usb_audio_resume	NULL
 #endif		/* CONFIG_PM */
 
-static struct usb_device_id usb_audio_ids [] = {
+static struct usb_device_id usb_audio_ids[] = {
 #include "quirks-table.h"
     { .match_flags = (USB_DEVICE_ID_MATCH_INT_CLASS | USB_DEVICE_ID_MATCH_INT_SUBCLASS),
       .bInterfaceClass = USB_CLASS_AUDIO,
-- 
1.7.9


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

* Re: [PATCH] Fixed atleast coding style issues relating spaces
  2012-04-21 21:14 [PATCH] Fixed atleast coding style issues relating spaces Jeffrin Jose
@ 2012-04-21 21:19 ` Jesper Juhl
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Juhl @ 2012-04-21 21:19 UTC (permalink / raw)
  To: Jeffrin Jose; +Cc: tiwai, linux-kernel

On Sun, 22 Apr 2012, Jeffrin Jose wrote:

> hello 
> 
> I have fixed atleast coding style issues relating
> spaces in file sound/usb/card.c
> 
> Please see attachment.
> 

ok, So I took a quick look at the patch and I think it looks fine. So as 
far as that goes, feel free to add
  Acked-by: Jesper Juhl <jj@chaosbits.net>

but you really should try to send patches inline rather than as 
attachments. Attachments are a pain when you want to reply and quote and 
comment on the patch.

As far as the mail (patch) subject goes, I also feel a need to comment; 
what's up with "atleast"? Shouldn't it just be
"Fixed coding style issues relating to spaces" ??

Anyway, the actual change looks good to me.

-- 
Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.


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

end of thread, other threads:[~2012-04-21 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21 21:14 [PATCH] Fixed atleast coding style issues relating spaces Jeffrin Jose
2012-04-21 21:19 ` Jesper Juhl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.