drm/amdkfd: Add break at the end of case
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 09:15:51 +0000 (11:15 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 10:43:37 +0000 (12:43 +0200)
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c

index 23a1e95f32c3b4f6315d3042aa6ced9a2f3a3489..85387c8b296cad706ec26017469646309da78370 100644 (file)
@@ -1114,8 +1114,11 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_dev *dev)
        switch (dev->device_info->asic_family) {
        case CHIP_CARRIZO:
                device_queue_manager_init_vi(&dqm->ops_asic_specific);
+               break;
+
        case CHIP_KAVERI:
                device_queue_manager_init_cik(&dqm->ops_asic_specific);
+               break;
        }
 
        if (dqm->ops.initialize(dqm) != 0) {
index c04b1ac60bd9e7f9f8e56e30e3b34a811479511c..e415a2a9207eb4605632f91e97e2a271809c04d1 100644 (file)
@@ -288,8 +288,11 @@ struct kernel_queue *kernel_queue_init(struct kfd_dev *dev,
        switch (dev->device_info->asic_family) {
        case CHIP_CARRIZO:
                kernel_queue_init_vi(&kq->ops_asic_specific);
+               break;
+
        case CHIP_KAVERI:
                kernel_queue_init_cik(&kq->ops_asic_specific);
+               break;
        }
 
        if (kq->ops.initialize(kq, dev, type, KFD_KERNEL_QUEUE_SIZE) == false) {