From: YAMANE Toshiaki <yamanetoshi@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Clark <rob@ti.com>
Cc: Dave Airlie <airlied@redhat.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
YAMANE Toshiaki <yamanetoshi@gmail.com>
Subject: [PATCH 08/16] staging/omapdrm: Fix spacing coding style in omap_fb.c
Date: Wed, 14 Nov 2012 19:32:17 +0900 [thread overview]
Message-ID: <1352889137-15079-1-git-send-email-yamanetoshi@gmail.com> (raw)
In-Reply-To: <1352888935-14742-1-git-send-email-yamanetoshi@gmail.com>
The following warnings fixed.
- WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
---
drivers/staging/omapdrm/omap_fb.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/omapdrm/omap_fb.c b/drivers/staging/omapdrm/omap_fb.c
index 75d2ff1..09028e9 100644
--- a/drivers/staging/omapdrm/omap_fb.c
+++ b/drivers/staging/omapdrm/omap_fb.c
@@ -307,17 +307,16 @@ struct drm_connector *omap_framebuffer_get_next_connector(
struct list_head *connector_list = &dev->mode_config.connector_list;
struct drm_connector *connector = from;
- if (!from) {
+ if (!from)
return list_first_entry(connector_list, typeof(*from), head);
- }
list_for_each_entry_from(connector, connector_list, head) {
if (connector != from) {
struct drm_encoder *encoder = connector->encoder;
struct drm_crtc *crtc = encoder ? encoder->crtc : NULL;
- if (crtc && crtc->fb == fb) {
+ if (crtc && crtc->fb == fb)
return connector;
- }
+
}
}
@@ -466,8 +465,8 @@ struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev,
return fb;
fail:
- if (fb) {
+ if (fb)
omap_framebuffer_destroy(fb);
- }
+
return ERR_PTR(ret);
}
--
1.7.9.5
next prev parent reply other threads:[~2012-11-14 10:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-14 10:28 [PATCH 01/16] staging/omapdrm: Fix spacing coding style in omap_connector.c YAMANE Toshiaki
2012-11-14 10:30 ` [PATCH 02/16] staging/omapdrm: remove the unnecessary initialization of a local variable in omap_crtc.c YAMANE Toshiaki
2012-11-14 10:30 ` [PATCH 03/16] staging/omapdrm: Fix spacing coding style " YAMANE Toshiaki
2012-11-14 10:30 ` [PATCH 04/16] staging/omapdrm: Fix spacing coding style in omap_drv.c YAMANE Toshiaki
2012-11-14 10:30 ` [PATCH 05/16] staging/omapdrm: Fix spacing coding style in omap_drv.h YAMANE Toshiaki
2012-11-14 10:31 ` [PATCH 06/16] " YAMANE Toshiaki
2012-11-14 10:31 ` [PATCH 07/16] staging/omapdrm: Fix spacing coding style in omap_encoder.c YAMANE Toshiaki
2012-11-14 10:32 ` YAMANE Toshiaki [this message]
2012-11-14 10:32 ` [PATCH 09/16] staging/omapdrm: Fix spacing coding style in omap_gem.c YAMANE Toshiaki
2012-11-14 10:33 ` [PATCH 10/16] " YAMANE Toshiaki
2012-11-14 10:33 ` [PATCH 11/16] " YAMANE Toshiaki
2012-11-14 10:40 ` [PATCH 12/16] staging/omapdrm: Fix spacing coding style in omap_gem_dmabuf.c YAMANE Toshiaki
2012-11-14 10:40 ` [PATCH 13/16] staging/omapdrm: Fix spacing coding style in omap_gem_helper.c YAMANE Toshiaki
2012-11-14 10:40 ` [PATCH 14/16] " YAMANE Toshiaki
2012-11-14 10:40 ` [PATCH 15/16] staging/omapdrm: Fix spacing coding style in omap_plane.c YAMANE Toshiaki
2012-11-14 10:41 ` [PATCH 16/16] " YAMANE Toshiaki
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=1352889137-15079-1-git-send-email-yamanetoshi@gmail.com \
--to=yamanetoshi@gmail.com \
--cc=airlied@redhat.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rob@ti.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome