Skip to content

Commit

Permalink
staging: comedi: fix coding style issue in drivers.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Micha Hergarden authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 7d3864d commit 3ad4e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3ad4e21

Please sign in to comment.