drm/nouveau/iccsense:
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 drm/nouveau/iccsense:
Fixed error: 'do not use assignment in if condition'
This patch fixes error: 'do not use assignment in if condition' in drm/nouveau/iccsense
--- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +0 -0
@@ -322,7 +322,8 @@ int nvkm_iccsense_new_(struct nvkm_device *device, enum nvkm_subdev_type
type, int inst,
struct nvkm_iccsense **iccsense)
{
- if (!(*iccsense = kzalloc(sizeof(**iccsense), GFP_KERNEL)))
+ *iccsense = kzalloc(sizeof(**iccsense), GFP_KERNEL);
+ if (!*iccsense)
return -ENOMEM;
INIT_LIST_HEAD(&(*iccsense)->sensors);
INIT_LIST_HEAD(&(*iccsense)->rails);Quoted 4 lines · On Mon, Jul 10, 2023 at 03:06:47PM +0800, [email protected] wrote:
Fixed error: 'do not use assignment in if condition'
This patch fixes error: 'do not use assignment in if condition' in drm/nouveau/iccsense
I guess this is checkpatch fix, right?
Quoted 21 lines
Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +2
-1@@ -322,7 +322,8 @@ int nvkm_iccsense_new_(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_iccsense **iccsense) { - if (!(*iccsense = kzalloc(sizeof(**iccsense), GFP_KERNEL))) + *iccsense =kzalloc (sizeof (**iccsense),GFP_KERNEL ); +if (!*iccsense)return -ENOMEM ;INIT_LIST_HEAD (&(*iccsense)->sensors);
Quoted 1 line
INIT_LIST_HEAD(&(*iccsense)->rails);
Your patch is corrupted (tabs converted to spaces) because you're using Roundcube. Please use git-send-mail(1) instead.
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 26 lines · Bagas Sanjaya
Quoted 4 lines · On Mon, Jul 10, 2023 at 03:06:47PM +0800, [email protected] wrote:
Fixed error: 'do not use assignment in if condition'
This patch fixes error: 'do not use assignment in if condition' in drm/nouveau/iccsense
I guess this is checkpatch fix, right?
Quoted 17 lines
Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +0
-1@@ -322,7 +322,8 @@ int nvkm_iccsense_new_(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_iccsense **iccsense) { - if (!(*iccsense = kzalloc(sizeof(**iccsense), GFP_KERNEL)))
Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +2
-0+ *iccsense =kzalloc (sizeof (**iccsense),GFP_KERNEL ); +if (!*iccsense)return -ENOMEM ;INIT_LIST_HEAD (&(*iccsense)->sensors);INIT_LIST_HEAD(&(*iccsense)->rails);Your patch is corrupted (tabs converted to spaces) because you're using Roundcube. Please use git-send-mail(1) instead.
oh right, I didn't notice with the patches I reviewed already here. Yeah, none of them apply, please use git to send those patches.
Quoted 4 lines
Thanks.
--
An old man doll... just what I always wanted! - Clara
Quoted 38 lines · Karol Herbst
Quoted 26 lines · Bagas Sanjaya
Quoted 4 lines · On Mon, Jul 10, 2023 at 03:06:47PM +0800, [email protected] wrote:
Fixed error: 'do not use assignment in if condition'
This patch fixes error: 'do not use assignment in if condition' in drm/nouveau/iccsense
I guess this is checkpatch fix, right?
Quoted 17 lines
Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +0
-1@@ -322,7 +322,8 @@ int nvkm_iccsense_new_(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_iccsense **iccsense) { - if (!(*iccsense = kzalloc(sizeof(**iccsense), GFP_KERNEL)))Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c +2
-0+ *iccsense =kzalloc (sizeof (**iccsense),GFP_KERNEL ); +if (!*iccsense)return -ENOMEM ;INIT_LIST_HEAD (&(*iccsense)->sensors);INIT_LIST_HEAD(&(*iccsense)->rails);Your patch is corrupted (tabs converted to spaces) because you're using Roundcube. Please use git-send-mail(1) instead.
Quoted 3 lines
oh right, I didn't notice with the patches I reviewed already here. Yeah, none of them apply, please use git to send those patches.
also please send them all together in a single series the next time.
Quoted 4 lines
Quoted 4 lines
Thanks.
--
An old man doll... just what I always wanted! - Clara