realtek: fix gcc-12 build with -Werror=array-compare