[PATCH -next 2/2] soc: xilinx: Do not check for 0 return after calling platform_get_irq()

2023-08-03 Thread Ruan Jinjie
There is no possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie --- drivers/soc/xilinx/zynqmp_power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx

[PATCH -next 1/2] soc: fsl: qe: Do not check for 0 return after calling platform_get_irq()

2023-08-03 Thread Ruan Jinjie
There is no possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie --- drivers/soc/fsl/qe/qe_ic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index

[PATCH -next 0/2] soc: Do not check for 0 return after calling platform_get_irq()

2023-08-03 Thread Ruan Jinjie
Since commit ce753ad1549c ("platform: finally disallow IRQ0 in platform_get_irq() and its ilk"), there is no possible for platform_get_irq() to return 0. And the return value of platform_get_irq() is more sensible to show the error reason. Ruan Jinjie (2): soc: fsl: qe: Do not c

[PATCH -next 2/5] USB: misc: Remove unnecessary NULL values

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- drivers/usb/misc/cypress_cy7c63.c | 2 +- drivers/usb/misc

[PATCH -next 3/5] usb: chipidea: udc: Remove an unnecessary NULL value

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- drivers/usb/chipidea/udc.c | 2 +- 1 file changed, 1 insertion

[PATCH -next 0/5] usb: Remove many unnecessary NULL values

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Ruan Jinjie (5): usb: gadget: udc: Remove unnecessary NULL values USB: misc: Remove unnecessary

[PATCH -next 1/5] usb: gadget: udc: Remove unnecessary NULL values

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- drivers/usb/gadget

[PATCH -next 5/5] USB: usbip: Remove an unnecessary NULL value

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- drivers/usb/usbip/vudc_dev.c | 2 +- 1 file changed, 1 insertion

[PATCH -next 4/5] usb: musb: Remove an unnecessary NULL value

2023-08-04 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kzalloc() first is not necessary, because if the kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- drivers/usb/musb/musb_gadget.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH -next 5/5] USB: usbip: Remove an unnecessary NULL value

2023-08-04 Thread Ruan Jinjie
On 2023/8/5 4:09, shuah wrote: > On 8/4/23 03:32, Ruan Jinjie wrote: >> The NULL initialization of the pointers assigned by kzalloc() first is >> not necessary, because if the kzalloc() failed, the pointers will be >> assigned NULL, otherwise it works as usual. so remove it

Re: [PATCH -next] powerpc/mpic_msgr: fix cast removes address space of expression warnings

2022-09-29 Thread Ruan Jinjie
Ping. On 2022/9/1 16:54, ruanjinjie wrote: > When build Linux kernel, encounter the following warnings: > > ./arch/powerpc/sysdev/mpic_msgr.c:230:38: warning: cast removes address space > '__iomem' of expression > ./arch/powerpc/sysdev/mpic_msgr.c:230:27: warning: incorrect type in > assignment

Re: [PATCH -next] powerpc/mpic_msgr: fix cast removes address space of expression warnings

2022-09-29 Thread Ruan Jinjie
On 2022/9/30 14:09, Christophe Leroy wrote: > > > Le 01/09/2022 à 10:54, ruanjinjie a écrit : >> [Vous ne recevez pas souvent de courriers de ruanjin...@huawei.com. >> Découvrez pourquoi ceci est important à >> https://aka.ms/LearnAboutSenderIdentification ] >> >> When build Linux kernel, en

Re: [PATCH -next v2] powerpc/mpic_msgr: fix cast removes address space of expression warnings

2022-10-28 Thread Ruan Jinjie
Ping. On 2022/10/19 14:34, ruanjinjie wrote: > When build Linux kernel, encounter the following warnings: > > ./arch/powerpc/sysdev/mpic_msgr.c:230:38: warning: cast removes address space > '__iomem' of expression > ./arch/powerpc/sysdev/mpic_msgr.c:230:27: warning: incorrect type in > assignme