Re: [PATCH v2 3/3] serial: mxs-auart: Remove unneeded zeroing of 'ret'

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

 




W dniu 2015-01-16 o 19:29, Fabio Estevam pisze:
On Fri, Jan 16, 2015 at 2:38 PM, Janusz Użycki <j.uzycki@xxxxxxxxxxxxxx> wrote:

I looked at the probe function and I guess you can get uninitialized
variable warning
No, let's look at the code:

static int mxs_auart_probe(struct platform_device *pdev)
{
     const struct of_device_id *of_id =
             of_match_device(mxs_auart_dt_ids, &pdev->dev);
     struct mxs_auart_port *s;
     u32 version;
     int ret;
     struct resource *r;

     s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL);
     if (!s)
         return -ENOMEM;

     ret = serial_mxs_probe_dt(s, pdev);

How 'ret' will get unitialized?

OK, right, I've looked at an older code.

best regards
Janusz

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux