summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2025-03-13 18:28:54 +0300
committerJassi Brar <jassisinghbrar@gmail.com>2025-03-27 04:58:26 +0300
commit2475b36401eda70f60e5d18d67ccafb81cedd0f7 (patch)
tree434fc91ad5a7eea915ebf7c92f5bdc40b432fc52 /lib/test_fortify/write_overflow-strncpy.c
parentfa362ffafa51b08cf8e2fcca38e056332f6b9b05 (diff)
downloadlinux-2475b36401eda70f60e5d18d67ccafb81cedd0f7.tar.xz
mailbox: pcc: Refactor and simplify check_and_ack()
The existing check_and_ack() function had unnecessary complexity. The logic could be streamlined to improve code readability and maintainability. The command update register needs to be updated in order to acknowledge the platform notification through type 4 channel. So it can be done unconditionally. Currently it is complicated just to make use of pcc_send_data() which also executes the same updation. In order to simplify, let us just ring the doorbell directly from check_and_ack() instead of calling into pcc_send_data(). While at it, rename it into pcc_chan_check_and_ack() to maintain consistency in the driver. Acked-by: Huisong Li <lihuisong@huawei.com> Tested-by: Adam Young <admiyo@os.amperecomputing.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions