lkml.org 
[lkml]   [2012]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] staging: comedi: cb_pcidas64: Fixed an if-statement check
    Date
    Fixed in if-statemnt responsible for a sanity check inside the
    prep_ao_dma function.

    Signed-off-by: Dimitrios Semitsoglou-Tsiapos <dimitrios.semitsoglou@gmail.com>
    ---
    drivers/staging/comedi/drivers/cb_pcidas64.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c
    index 6f7fd99..a2e6f96 100644
    --- a/drivers/staging/comedi/drivers/cb_pcidas64.c
    +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c
    @@ -3392,8 +3392,8 @@ static int prep_ao_dma(struct comedi_device *dev, const struct comedi_cmd *cmd)
    num_bytes = load_ao_dma_buffer(dev, cmd);
    if (num_bytes == 0)
    return -1;
    - if (num_bytes >= DMA_BUFFER_SIZE) ;
    - load_ao_dma(dev, cmd);
    + if (num_bytes >= DMA_BUFFER_SIZE)
    + load_ao_dma(dev, cmd);

    dma_start_sync(dev, 0);

    --
    1.7.10.2


    \
     
     \ /
      Last update: 2012-05-29 00:41    [W:0.030 / U:31.328 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site