@samitouri / QOSamiQemu / commits / 6151922f0e

coreaudio: Remove unnecessary explicit casts

coreaudio had unnecessary explicit casts and they had extra whitespaces around them so remove them. Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260304-coreaudio-v8-1-bf1d40731e73@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Akihiko Odaki committed Mar 4, 2026 at 15:16 UTC 6151922f0ebac1a7fa8647800ccee06f647d586e
1 file changed +3 -3
audio/coreaudio.m
+3 -3
@@ -310,7 +310,7 @@ static OSStatus audioDeviceIOProc(
310 UInt32 frameCount, pending_frames;
311 void *out = outOutputData->mBuffers[0].mData;
312 HWVoiceOut *hw = hwptr;
313 - coreaudioVoiceOut *core = (coreaudioVoiceOut *) hwptr;
313 + coreaudioVoiceOut *core = hwptr;
314 size_t len;
315
316 if (coreaudio_buf_lock (core, "audioDeviceIOProc")) {
@@ -394,11 +394,11 @@ static OSStatus init_out_device(coreaudioVoiceOut *core)
394 }
395
396 if (frameRange.mMinimum > core->frameSizeSetting) {
397 - core->audioDevicePropertyBufferFrameSize = (UInt32) frameRange.mMinimum;
397 + core->audioDevicePropertyBufferFrameSize = frameRange.mMinimum;
398 warn_report("coreaudio: Upsizing buffer frames to %f",
399 frameRange.mMinimum);
400 } else if (frameRange.mMaximum < core->frameSizeSetting) {
401 - core->audioDevicePropertyBufferFrameSize = (UInt32) frameRange.mMaximum;
401 + core->audioDevicePropertyBufferFrameSize = frameRange.mMaximum;
402 warn_report("coreaudio: Downsizing buffer frames to %f",
403 frameRange.mMaximum);
404 } else {