Skip to content

Commit 42701e7

Browse files
author
Tzung-Bi Shih
committed
platform/chrome: cros_ec_proto: drop unneeded BUG_ON() in prepare_packet()
prepare_packet() gets called if `ec_dev->proto_version` > 2. For now, it must be equivalent to EC_HOST_REQUEST_VERSION. Drop the BUG_ON(). Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0a4cad9 commit 42701e7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/platform/chrome/cros_ec_proto.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ static int prepare_packet(struct cros_ec_device *ec_dev,
6060
int i;
6161
u8 csum = 0;
6262

63-
BUG_ON(ec_dev->proto_version != EC_HOST_REQUEST_VERSION);
6463
BUG_ON(msg->outsize + sizeof(*request) > ec_dev->dout_size);
6564

6665
out = ec_dev->dout;

0 commit comments

Comments
 (0)