lkml.org 
[lkml]   [2023]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/2] dmaengine: mv_xor_v2: Fix an error code.
    A bunch of false positives could be silenced by changing the assign
    and return hooks to check for unsigned types:

    static void match_assign(struct expression *expr)
    {
    if (expr_unsigned(expr->left))
    return;
    warn_on_positive_error(expr->right);
    }

    static void match_return(struct expression *expr)
    {
    struct symbol *type;

    type = cur_func_return_type();
    if (type_unsigned(type))
    return;

    warn_on_positive_error(expr);
    }

    regards,
    dan carpenter

    \
     
     \ /
      Last update: 2023-03-29 12:55    [W:6.989 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site