diff options
-rw-r--r-- | drivers/thunderbolt/switch.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index e9391bbd4036..69fde0b30eda 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c | |||
@@ -808,9 +808,6 @@ static ssize_t key_store(struct device *dev, struct device_attribute *attr, | |||
808 | u8 key[TB_SWITCH_KEY_SIZE]; | 808 | u8 key[TB_SWITCH_KEY_SIZE]; |
809 | ssize_t ret = count; | 809 | ssize_t ret = count; |
810 | 810 | ||
811 | if (count < 64) | ||
812 | return -EINVAL; | ||
813 | |||
814 | if (hex2bin(key, buf, sizeof(key))) | 811 | if (hex2bin(key, buf, sizeof(key))) |
815 | return -EINVAL; | 812 | return -EINVAL; |
816 | 813 | ||