Skip to contentSkip to conversation

drm/nouveau/iccsense:

PATCH In review [email protected] 3 participants 4 messages Jul 10, 2023 – Jul 13, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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
index 8f0ccd3664eb..2428f3d6e477 100644
@@ -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);
#2 lore raw
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
---
 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
index 8f0ccd3664eb..2428f3d6e477 100644
@@ -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
#3 lore raw
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
---
 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
index 8f0ccd3664eb..2428f3d6e477 100644
@@ -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

#4 lore raw
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
---
 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
index 8f0ccd3664eb..2428f3d6e477 100644
@@ -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