Since the hdr->protocol_id is set from the scmi_protocol_instance handle
just before the transfer, there is no need to initialise the same in
scmi_xfer_get_init. Remove the unnecessary initialisations.
Signed-off-by: Sudeep Holla <redacted>
---
drivers/firmware/arm_scmi/driver.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Hi,
On Tue, Jun 08, 2021 at 03:01:40PM +0100, Sudeep Holla wrote:
quoted hunk
Since the hdr->protocol_id is set from the scmi_protocol_instance handle
just before the transfer, there is no need to initialise the same in
scmi_xfer_get_init. Remove the unnecessary initialisations.
Signed-off-by: Sudeep Holla <redacted>
---
drivers/firmware/arm_scmi/driver.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
LGTM, other that the warning above, and tested fine too.
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Thanks,
Cristian
On Tue, 8 Jun 2021 15:01:40 +0100, Sudeep Holla wrote:
Since the hdr->protocol_id is set from the scmi_protocol_instance handle
just before the transfer, there is no need to initialise the same in
scmi_xfer_get_init. Remove the unnecessary initialisations.