Skip to contentSkip to conversation

staging: greybus: Remove unused header declaration to_fw_mgmt_connection

PATCH In review Jeremy Dean Clifton 2 participants 2 messages Oct 15 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 v3 1/1 staging: greybus: Remove unused header declaration to_fw_mgmt_connection

Commit 3228900f80c2 ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'") removed a function definition but did not remove the function prototype.

Remove the prototype.

---
v3: Change to imperative mood and write in proper English (Julia Lawall).
v2: Fix grammar and spelling in commit message.

 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
Reviewed-by on v3 1/1
#2 lore raw
Quoted 7 lines · Jeremy Dean Clifton

Commit 3228900f80c2 ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'") removed a function definition but did not remove the function prototype.

Remove the prototype.

This could maybe have a "fixes" but if it gets accepted soon I don't think it will matter, because this will land in the same release as the fixed commit.

This looks good.

Quoted 20 lines

---
v3: Change to imperative mood and write in proper English (Julia Lawall).
v2: Fix grammar and spelling in commit message.

  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);