commit | 4b2bf5abccab6aefd6afe70f91000e21767b81a8 | [log] [tgz] |
---|---|---|
author | Peter Mitsis <peter.mitsis@intel.com> | Fri Dec 08 14:29:08 2023 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Dec 15 14:51:35 2023 -0500 |
tree | 23cf71740bf46e0c4ed7ac782d98837f225ef111 | |
parent | b83b9bede3bdc787615073a99463e6a00932318d [diff] |
kernel: Apply const to k_pipe_put() parameter The pointer parameter 'data' in the function 'k_pipe_put()' ought to use the const modifier as the contents of the buffer to which it points never change. Internally, that const modifier is dropped as both 'k_pipe_get()' and 'k_pipe_put()' share common code for copying data; however 'k_pipe_put()' never takes a path that modifies those contents. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>