Skip to contentSkip to conversation

staging: greybus: Remove unused header declaration to_fw_mgmt_connection

PATCH Superseded Jeremy Dean Clifton 2 participants 3 messages Oct 14 1 message not in the archive

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

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 staging: greybus: Remove unused header declaration to_fw_mgmt_connection

commit 3228900f80c2
("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")

Function header declaration needs to be removed after it's declaration. There is no declaration of this function nor is there any place where it is called.

---
 drivers/staging/greybus/firmware.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/firmware.h +0 -1
index 5d2564462ffc..04a67d2d5b8f 100644
@@ -22,7 +22,6 @@
 /* Firmware Management Protocol specific functions */
 int fw_mgmt_init(void);
 void fw_mgmt_exit(void);
-struct gb_connection *to_fw_mgmt_connection(struct device *dev);
 int gb_fw_mgmt_request_handler(struct gb_operation *op);
 int gb_fw_mgmt_connection_init(struct gb_connection *connection);
 void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
Signature · 1 line
2.43.0
#2 lore raw
Quoted 2 lines · Jeremy Dean Clifton

commit 3228900f80c2
("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")

What is this?

Quoted 2 lines

Function header declaration needs to be removed after it's declaration.

it's -> its

But I don't really understand the sentence.

julia

Quoted 25 lines

There is no declaration of this function nor is there any place where it is called.

---
 drivers/staging/greybus/firmware.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/firmware.h +0 -2
index 5d2564462ffc..04a67d2d5b8f 100644
@@ -22,7 +22,6 @@
 /* Firmware Management Protocol specific functions */
 int fw_mgmt_init(void);
 void fw_mgmt_exit(void);
-struct gb_connection *to_fw_mgmt_connection(struct device *dev);
 int gb_fw_mgmt_request_handler(struct gb_operation *op);
 int gb_fw_mgmt_connection_init(struct gb_connection *connection);
 void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
--

2.43.0

#3 lore raw
Quoted 9 lines · Julia Lawall
Quoted 2 lines · Jeremy Dean Clifton

commit 3228900f80c2
("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")

What is this?

This is the previous commit that did not remove the prototype of the function it removed. I'll include a sentence explaining what this commit info is here for.

Quoted 5 lines
Quoted 2 lines

Function header declaration needs to be removed after it's declaration.

it's -> its

This is a grammar and semantic error on my part. First, you are correct about 'its.' Second, the word 'declaration' is truly not correct here. It would read better as 'definition.'

"Function header declaration needs to be removed after definition removal."

Submitting v2 with corrections.

Jeremy