From: Micha Hergarden Date: Wed, 2 Feb 2011 20:25:07 +0000 (+0100) Subject: staging: comedi: fix coding style issue in drivers.c X-Git-Tag: MMI-PSA29.97-13-9~20521^2~671 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ad4e219606fa317f778b26553889520aed7925c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: comedi: fix coding style issue in drivers.c This is a patch to the drivers.c file that fixes up a braces around single statement warning found by the checkpatch.pl tool Signed-off-by: Micha Hergarden Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c index dca861ee0466..6d60e91b3a85 100644 --- a/drivers/staging/comedi/drivers.c +++ b/drivers/staging/comedi/drivers.c @@ -471,9 +471,9 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, async->buf_page_list = vzalloc(sizeof(struct comedi_buf_page) * n_pages); - if (async->buf_page_list) { + if (async->buf_page_list) pages = vmalloc(sizeof(struct page *) * n_pages); - } + if (pages) { for (i = 0; i < n_pages; i++) { if (s->async_dma_dir != DMA_NONE) {