ramips: sanitize return value of ramips_gpio_get