Re: [PATCH v2 08/10] media: ipu3-cio2: Drop bogus check and error message

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

 



On Fri, Oct 9, 2020 at 4:22 AM Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
> On Mon, Aug 17, 2020 at 07:07:31PM +0300, Andy Shevchenko wrote:
> > pcim_iomap_table() won't fail if previous pcim_iomap_regions() hasn't.
> > Since we check pcim_iomap_regions() for failure the check close to
> > pcim_iomap_table() is bogus and not needed.

> > +     cio2->base = pcim_iomap_table(pci_dev)[CIO2_PCI_BAR];
>
> pcim_iomap_table() can return NULL if devres_alloc() runs out of memory.

True. And this is checked by pcim_iomap_regions(). So, dup check is
not necessary.

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux