From 53f5c69a3c6a88cb706fa56e44b3e2f8f55aa3b4 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 6 Jan 2012 14:07:14 +0100 Subject: omap3isp: Make number of buffers mandatory in pipeline pool definition Signed-off-by: Laurent Pinchart --- isp/omap3isp.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'isp') diff --git a/isp/omap3isp.c b/isp/omap3isp.c index 2c48748..3d687a6 100644 --- a/isp/omap3isp.c +++ b/isp/omap3isp.c @@ -374,14 +374,12 @@ omap3_isp_pipeline_create_pool(struct omap3_isp_device *isp, char *endp; name += 5; - if (*name != '\0') { - if (*name != ':') - return NULL; + if (*name != ':') + return NULL; - nbufs = strtoul(name + 1, &endp, 10); - if (*endp != '\0') - return NULL; - } + nbufs = strtoul(name + 1, &endp, 10); + if (*endp != '\0') + return NULL; pool = malloc(sizeof *pool); if (pool == NULL) -- cgit v1.2.3