if (dso->rel)
                return rip - map__pgoff(map);
 
-       /*
-        * kernel modules also have DSO_TYPE_USER in dso->kernel,
-        * but all kernel modules are ET_REL, so won't get here.
-        */
        if (dso->kernel == DSO_SPACE__USER)
                return rip + dso->text_offset;
 
        if (dso->rel)
                return map__unmap_ip(map, ip + map__pgoff(map));
 
-       /*
-        * kernel modules also have DSO_TYPE_USER in dso->kernel,
-        * but all kernel modules are ET_REL, so won't get here.
-        */
        if (dso->kernel == DSO_SPACE__USER)
                return map__unmap_ip(map, ip - dso->text_offset);