Re: [PATCH 1/2] dmaengine: mv_xor_v2: Fix an error code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux