[PATCH] drm:sprd: Correct left shift operator evaluating constant expression

2024-11-06 Thread Karan Sanghavi
The left shift operation followed by a mask with 0xf will always result in 0. To correctly evaluate the expression for the bitwise OR operation, use a right shift instead. Reported by Coverity Scan CID: 1511468 Signed-off-by: Karan Sanghavi --- Coverity Scan Message: CID 1511468: (#1 of 1): Wron

Re: [PATCH] drm:sprd: Correct left shift operator evaluating constant expression

2024-11-05 Thread Chunyan Zhang
Hi Karan, On Wed, 6 Nov 2024 at 02:19, Karan Sanghavi wrote: > > The left shift operation followed by a mask with 0xf will > always result in 0. To correctly evaluate the expression for > the bitwise OR operation, use a right shift instead. > > Reported by Coverity Scan CID: 1511468 Should we ad