From: Scott Jiang <scott.jiang.linux@gmail.com>
To: <sakari.ailus@iki.fi>, Hans Verkuil <hverkuil@xs4all.nl>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
<linux-media@vger.kernel.org>,
<uclinux-dist-devel@blackfin.uclinux.org>
Cc: Scott Jiang <scott.jiang.linux@gmail.com>
Subject: [PATCH] v4l2: v4l2-fh: v4l2_fh_is_singular should use list head to test
Date: Wed, 21 Dec 2011 10:30:54 -0500 [thread overview]
Message-ID: <1324481454-30066-1-git-send-email-scott.jiang.linux@gmail.com> (raw)
list_is_singular accepts a list head to test whether a list has just one entry.
fh->list is the entry, fh->vdev->fh_list is the list head.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
---
drivers/media/video/v4l2-fh.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/v4l2-fh.c b/drivers/media/video/v4l2-fh.c
index 9e3fc04..8292c4a 100644
--- a/drivers/media/video/v4l2-fh.c
+++ b/drivers/media/video/v4l2-fh.c
@@ -113,7 +113,7 @@ int v4l2_fh_is_singular(struct v4l2_fh *fh)
if (fh == NULL || fh->vdev == NULL)
return 0;
spin_lock_irqsave(&fh->vdev->fh_lock, flags);
- is_singular = list_is_singular(&fh->list);
+ is_singular = list_is_singular(&fh->vdev->fh_list);
spin_unlock_irqrestore(&fh->vdev->fh_lock, flags);
return is_singular;
}
--
1.7.0.4
next reply other threads:[~2011-12-21 3:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 15:30 Scott Jiang [this message]
2012-01-04 15:54 ` [PATCH] v4l2: v4l2-fh: v4l2_fh_is_singular should use list head to test Sakari Ailus
2012-01-05 2:52 ` Scott Jiang
2012-01-05 7:57 ` Sakari Ailus
2012-01-07 13:59 ` Mauro Carvalho Chehab
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=1324481454-30066-1-git-send-email-scott.jiang.linux@gmail.com \
--to=scott.jiang.linux@gmail.com \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=sakari.ailus@iki.fi \
--cc=uclinux-dist-devel@blackfin.uclinux.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.