lkml.org 
[lkml]   [2009]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] gigaset: drop pointless check
    Date
    Drop a sanity check which doesn't serve any useful purpose anymore.

    Signed-off-by: Tilman Schmidt <tilman@imap.cc>
    ---
    drivers/isdn/gigaset/isocdata.c | 6 ------
    1 files changed, 0 insertions(+), 6 deletions(-)

    diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c
    index db3a1e4..bed38fc 100644
    --- a/drivers/isdn/gigaset/isocdata.c
    +++ b/drivers/isdn/gigaset/isocdata.c
    @@ -174,12 +174,6 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size)
    pr_err("invalid size %d\n", size);
    return -EINVAL;
    }
    - src = iwb->read;
    - if (unlikely(limit >= BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
    - (read < src && limit >= src))) {
    - pr_err("isoc write buffer frame reservation violated\n");
    - return -EFAULT;
    - }
    #endif

    if (read < write) {
    --
    1.6.2.1.214.ge986c


    \
     
     \ /
      Last update: 2009-07-01 23:25    [W:0.020 / U:0.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site