diff options
author | Stephen Boyd <[email protected]> | 2018-09-26 11:02:34 -0700 |
---|---|---|
committer | Andy Gross <[email protected]> | 2018-11-14 10:06:24 -0800 |
commit | ed3cafa79ea756be653d22087c017af95ea78a49 (patch) | |
tree | 606d95729cf08c0ee8b9d045a895ccdeb5468fc6 /scripts/gdb/linux | |
parent | 84fa36eb30f2e02ebf07a22fea2550a7a3938bec (diff) |
soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data()
Let's change the function signature to return the pointer to memory or
an error pointer on failure, and take an argument that lets us return
the size of the aux data read. This way we can remove the
cmd_db_read_aux_data_len() API entirely and also get rid of the memcpy
operation from cmd_db to the caller. Updating the only user of this code
shows that making this change allows us to remove a function and put the
lookup where the user is.
Cc: Mahesh Sivasubramanian <[email protected]>
Cc: Lina Iyer <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: Evan Green <[email protected]>
Cc: Jordan Crouse <[email protected]>
Cc: Rob Clark <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Andy Gross <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions