]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/memory-failure.c
USB: phy: tahvo: convert platform driver to use dev_groups
[linux.git] / mm / memory-failure.c
index 7e08cbf3ba49f705d54fa9e7d0f34f13992b8de2..7ef849da8278c1ce659f4930c5df17fbe7e2f7d5 100644 (file)
@@ -1177,16 +1177,12 @@ static int memory_failure_dev_pagemap(unsigned long pfn, int flags,
                goto unlock;
        }
 
-       switch (pgmap->type) {
-       case MEMORY_DEVICE_PRIVATE:
-       case MEMORY_DEVICE_PUBLIC:
+       if (pgmap->type == MEMORY_DEVICE_PRIVATE) {
                /*
                 * TODO: Handle HMM pages which may need coordination
                 * with device-side memory.
                 */
                goto unlock;
-       default:
-               break;
        }
 
        /*