summaryrefslogtreecommitdiff
path: root/isp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-01-06 14:07:14 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-01-06 14:07:14 +0100
commit53f5c69a3c6a88cb706fa56e44b3e2f8f55aa3b4 (patch)
tree7c77730ff665034d21832e85110547e90dd6e19b /isp
parent64967ec99ba606b98d913ffa90a824d4466c4b3b (diff)
omap3isp: Make number of buffers mandatory in pipeline pool definition
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp')
-rw-r--r--isp/omap3isp.c12
1 files changed, 5 insertions, 7 deletions
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)