Skip to contentSkip to conversation

staging/android: remove redundant comments on sync_merge_data

PATCH Hillf Danton 2 participants 2 messages Apr 29, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 31 lines

From: Gustavo Padovan <[email protected]>

struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it.

---
 drivers/staging/android/uapi/sync.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/android/uapi/sync.h +3 -3
index 7de5d6a..413303d 100644
@@ -23,9 +23,9 @@
  * @pad:	padding for 64-bit alignment, should always be zero
  */
 struct sync_merge_data {
-	char	name[32]; /* name of new fence */
-	__s32	fd2; /* fd of second fence */
-	__s32	fence; /* fd on newly created fence */
+	char	name[32];
+	__s32	fd2;
+	__s32	fence;
 	__u32	flags;
 	__u32	pad;
 };

drivers/staging/android/uapi/sync.h struct sync_merge_data { · line 37

Quoted 7 lines
drivers/staging/android/uapi/sync.h +2 -2
@@ -33,8 +33,8 @@ struct sync_merge_data {
 /**
  * struct sync_fence_info - detailed fence information
  * @obj_name:		name of parent sync_timeline
- * @driver_name:	name of driver implementing the parent
- * @status:		status of the fence 0:active 1:signaled <0:error
+* @driver_name:	name of driver implementing the parent
+* @status:		status of the fence 0:active 1:signaled <0:error

Would you please specify why this hunk is needed, with fence info not mentioned in commit message?

Quoted 6 lines
drivers/staging/android/uapi/sync.h +0 -1
  * @flags:		fence_info flags
  * @timestamp_ns:	timestamp of status change in nanoseconds
  */
--

2.5.5

#2 lore raw

Hi Hillf,

2016-04-29 Hillf Danton <[email protected]>:

Quoted 33 lines
Quoted 33 lines

From: Gustavo Padovan <[email protected]>

struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it.

---
 drivers/staging/android/uapi/sync.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/android/uapi/sync.h +3 -3
index 7de5d6a..413303d 100644
@@ -23,9 +23,9 @@
  * @pad:	padding for 64-bit alignment, should always be zero
  */
 struct sync_merge_data {
-	char	name[32]; /* name of new fence */
-	__s32	fd2; /* fd of second fence */
-	__s32	fence; /* fd on newly created fence */
+	char	name[32];
+	__s32	fd2;
+	__s32	fence;
 	__u32	flags;
 	__u32	pad;
 };
@@ -33,8 +33,8 @@ struct sync_merge_data {
 /**
  * struct sync_fence_info - detailed fence information
Quoted 8 lines

drivers/staging/android/uapi/sync.h struct sync_merge_data { · line 37

Quoted 5 lines
drivers/staging/android/uapi/sync.h +2 -2
  * @obj_name:		name of parent sync_timeline
- * @driver_name:	name of driver implementing the parent
- * @status:		status of the fence 0:active 1:signaled <0:error
+* @driver_name:	name of driver implementing the parent
+* @status:		status of the fence 0:active 1:signaled <0:error

Would you please specify why this hunk is needed, with fence info not mentioned in commit message?

This shouldn't be here. Probably some leftover from a rebase that I didn't notice. Thanks for pointing it out. I'll update this patch.

Gustavo