staging: comedi: fix coding style issue in drivers.c
authorMicha Hergarden <micha.hergarden@gmail.com>
Wed, 2 Feb 2011 20:25:07 +0000 (21:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 21:04:24 +0000 (13:04 -0800)
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 <micha.hergarden@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers.c

index dca861ee0466f4c9a74d969a499401bce77218e9..6d60e91b3a859dfe6fa03a851e7a70860df657b0 100644 (file)
@@ -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) {