VirtualBox

Changeset 107576 in vbox


Ignore:
Timestamp:
Jan 9, 2025 9:47:37 AM (9 days ago)
Author:
vboxsync
Message:

src/VBox/Main/src-client/UsbWebcamInterface.cpp: Fixed warnings found by Parfait (assignment unused). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp

    r106061 r107576  
    152152void EmWebcam::EmWebcamCbNotify(uint32_t u32Id, const void *pvData, uint32_t cbData)
    153153{
    154     int vrc = VINF_SUCCESS;
    155 
    156154    switch (u32Id)
    157155    {
     
    178176            {
    179177                AssertFailed();
    180                 vrc = VERR_NOT_SUPPORTED;
    181178                break;
    182179            }
     
    184181            EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)RTMemAllocZ(sizeof(EMWEBCAMREMOTE));
    185182            if (pRemote == NULL)
    186             {
    187                 vrc = VERR_NO_MEMORY;
    188183                break;
    189             }
    190184
    191185            pRemote->pEmWebcam        = this;
     
    200194
    201195            /* Tell the server that this webcam will be used. */
    202             vrc = mParent->VideoInDeviceAttach(&mpRemote->deviceHandle, mpRemote);
     196            int vrc = mParent->VideoInDeviceAttach(&mpRemote->deviceHandle, mpRemote);
    203197            if (RT_FAILURE(vrc))
    204198            {
     
    210204            /* Get the device description. */
    211205            vrc = mParent->VideoInGetDeviceDesc(NULL, &mpRemote->deviceHandle);
    212 
    213206            if (RT_FAILURE(vrc))
    214207            {
     
    220213
    221214            LogFlowFunc(("sent DeviceDesc\n"));
    222         } break;
     215            break;
     216        }
    223217
    224218        case VRDE_VIDEOIN_NOTIFY_ID_DETACH:
     
    236230                /* mpRemote is deallocated in EmWebcamDestruct */
    237231            }
    238         } break;
     232
     233            break;
     234        }
    239235
    240236        default:
    241             vrc = VERR_INVALID_PARAMETER;
    242237            AssertFailed();
    243238            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette