Re: [PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-03 Thread Bartosz Golaszewski
On Thu, Dec 3, 2020 at 9:51 AM Biwen Li (OSS) wrote: > > > > > On Thu, Dec 3, 2020 at 9:07 AM Biwen Li (OSS) wrote: > > > > > > > On Thu, Dec 3, 2020 at 8:31 AM Biwen Li wrote: > > > > > > > > > > From: Biwen Li > > > > > > > > > > Resolve coverity warnings as follows, > > > > > cond_at_mos

RE: [PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-03 Thread Biwen Li (OSS)
> > On Thu, Dec 3, 2020 at 9:07 AM Biwen Li (OSS) wrote: > > > > > On Thu, Dec 3, 2020 at 8:31 AM Biwen Li wrote: > > > > > > > > From: Biwen Li > > > > > > > > Resolve coverity warnings as follows, > > > > cond_at_most: Checking gpio >= 28U implies that gpio may be up > > > > to 27 on

Re: [PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-03 Thread Bartosz Golaszewski
On Thu, Dec 3, 2020 at 9:07 AM Biwen Li (OSS) wrote: > > > On Thu, Dec 3, 2020 at 8:31 AM Biwen Li wrote: > > > > > > From: Biwen Li > > > > > > Resolve coverity warnings as follows, > > > cond_at_most: Checking gpio >= 28U implies that gpio may be up > > > to 27 on the false branch. > >

RE: [PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-03 Thread Biwen Li (OSS)
> On Thu, Dec 3, 2020 at 8:31 AM Biwen Li wrote: > > > > From: Biwen Li > > > > Resolve coverity warnings as follows, > > cond_at_most: Checking gpio >= 28U implies that gpio may be up > > to 27 on the false branch. > > overrun-call: Overrunning callees array of size 3 by passing > >

Re: [PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-03 Thread Bartosz Golaszewski
On Thu, Dec 3, 2020 at 8:31 AM Biwen Li wrote: > > From: Biwen Li > > Resolve coverity warnings as follows, > cond_at_most: Checking gpio >= 28U implies that gpio may be up > to 27 on the false branch. > overrun-call: Overrunning callees array of size 3 by passing > argument gpio

[PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-02 Thread Biwen Li
From: Biwen Li Resolve coverity warnings as follows, cond_at_most: Checking gpio >= 28U implies that gpio may be up to 27 on the false branch. overrun-call: Overrunning callees array of size 3 by passing argument gpio (which evaluates to 27) in call to *mpc8xxx_gc->direction_o