All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Mickler <florian@mickler.org>
To: mchehab@infradead.org
Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	pb@linuxtv.org, Florian Mickler <florian@mickler.org>
Subject: [PATCH 1/9] [media] vp702x: cleanup: whitespace and indentation
Date: Mon, 21 Mar 2011 11:19:06 +0100	[thread overview]
Message-ID: <1300702754-16376-2-git-send-email-florian@mickler.org> (raw)
In-Reply-To: <1300702754-16376-1-git-send-email-florian@mickler.org>

Some whitespace, one linebreak and one unneded variable
initialization...

Signed-off-by: Florian Mickler <florian@mickler.org>
---
 drivers/media/dvb/dvb-usb/vp702x.c |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/vp702x.c b/drivers/media/dvb/dvb-usb/vp702x.c
index 7890e75..4c9939f 100644
--- a/drivers/media/dvb/dvb-usb/vp702x.c
+++ b/drivers/media/dvb/dvb-usb/vp702x.c
@@ -36,14 +36,14 @@ struct vp702x_device_state {
 /* check for mutex FIXME */
 int vp702x_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen)
 {
-	int ret = -1;
+	int ret;
 
-		ret = usb_control_msg(d->udev,
-			usb_rcvctrlpipe(d->udev,0),
-			req,
-			USB_TYPE_VENDOR | USB_DIR_IN,
-			value,index,b,blen,
-			2000);
+	ret = usb_control_msg(d->udev,
+		usb_rcvctrlpipe(d->udev, 0),
+		req,
+		USB_TYPE_VENDOR | USB_DIR_IN,
+		value, index, b, blen,
+		2000);
 
 	if (ret < 0) {
 		warn("usb in operation failed. (%d)", ret);
@@ -221,7 +221,8 @@ static int vp702x_frontend_attach(struct dvb_usb_adapter *adap)
 
 	vp702x_usb_out_op(adap->dev, SET_TUNER_POWER_REQ, 0, 7, NULL, 0);
 
-	if (vp702x_usb_inout_cmd(adap->dev, GET_SYSTEM_STRING, NULL, 0, buf, 10, 10))
+	if (vp702x_usb_inout_cmd(adap->dev, GET_SYSTEM_STRING, NULL, 0,
+				   buf, 10, 10))
 		return -EIO;
 
 	buf[9] = '\0';
@@ -307,9 +308,9 @@ static struct dvb_usb_device_properties vp702x_properties = {
 /* usb specific object needed to register this driver with the usb subsystem */
 static struct usb_driver vp702x_usb_driver = {
 	.name		= "dvb_usb_vp702x",
-	.probe 		= vp702x_usb_probe,
-	.disconnect = dvb_usb_device_exit,
-	.id_table 	= vp702x_usb_table,
+	.probe		= vp702x_usb_probe,
+	.disconnect	= dvb_usb_device_exit,
+	.id_table	= vp702x_usb_table,
 };
 
 /* module stuff */
-- 
1.7.4.1


  reply	other threads:[~2011-03-21 10:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 10:19 [PATCH 0/9] vp702x: get rid of on-stack dma buffers (part2 1/2) Florian Mickler
2011-03-21 10:19 ` Florian Mickler [this message]
2011-03-21 10:19 ` [PATCH 2/9] [media] vp702x: rename struct vp702x_state -> vp702x_adapter_state Florian Mickler
2011-03-21 10:19 ` [PATCH 3/9] [media] vp702x: preallocate memory on device probe Florian Mickler
2011-03-21 10:19 ` [PATCH 4/9] [media] vp702x: remove unused variable Florian Mickler
2011-03-21 10:19 ` [PATCH 5/9] [media] vp702x: get rid of on-stack dma buffers Florian Mickler
2011-03-21 10:19 ` [PATCH 6/9] [media] vp702x: fix locking of usb operations Florian Mickler
2011-03-21 10:19 ` [PATCH 7/9] [media] vp702x: use preallocated buffer Florian Mickler
2011-03-21 10:19 ` [PATCH 8/9] [media] vp702x: use preallocated buffer in vp702x_usb_inout_cmd Florian Mickler
2011-03-21 10:19 ` [PATCH 9/9] [media] vp702x: use preallocated buffer in the frontend Florian Mickler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1300702754-16376-2-git-send-email-florian@mickler.org \
    --to=florian@mickler.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=pb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.