drbd: Get rid of P_MAX_CMD
authorAndreas Gruenbacher <agruen@linbit.com>
Mon, 14 Mar 2011 16:27:45 +0000 (17:27 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:53 +0000 (16:47 +0200)
commit6e849ce88cd63efc6650a1826d18ed742eb31999
treea8cf7681d66c6a4b46c0aa803a74649d15958a1b
parent1b3bb47d526c63a845e3374d6272a67fbe20a468
drbd: Get rid of P_MAX_CMD

Instead of artificially enlarging the command decoding arrays to
P_MAX_CMD entries, check if an index is within the valid range using the
ARRAY_SIZE() macro.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_receiver.c
This page took 0.024409 seconds and 5 git commands to generate.