Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Differential
D18048
Diff 51576
sys/dev/tpm/tpm20.h
Changeset View
This seems like a really verbose and error-prone way of specifying a table of mostly defaults, with a few non-defaults. There are a couple ways you could represent this more succinctly and clearly: a table of only non-default cmd+timeout combinations, plus initialization of the larger table at load; (ab)using zero initialization to represent timeout_b and specifying the others with C99 array initializer syntax ([123] = TPM_TIMEOUT_C,); I'm sure you could think of others.