aboutsummaryrefslogtreecommitdiff
path: root/hw/avr/arduino.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-05 19:56:52 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-10 12:59:09 +0200
commitc7785e243195799749242b5fc741b8fbf1053f82 (patch)
tree12bf3f64404a801b3276a41c9dcd32d4e25baa44 /hw/avr/arduino.c
parent59a4757bb4d01c9dfb50e872a9d04ad1f1c38049 (diff)
downloadqemu-c7785e243195799749242b5fc741b8fbf1053f82.zip
qemu-c7785e243195799749242b5fc741b8fbf1053f82.tar.gz
qemu-c7785e243195799749242b5fc741b8fbf1053f82.tar.bz2
hw/gpio/pca9552: Avoid using g_newa()
We have pin_count <= PCA955X_PIN_COUNT_MAX. Having PCA955X_PIN_COUNT_MAX = 16, it is safe to explicitly allocate the char buffer on the stack, without g_newa(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20250605193540.59874-2-philmd@linaro.org>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions