drm: Remove redundant code in the getencoder ioctl