fonts: Use BUILD_BUG_ON() for checking empty font table
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2019 20:34:24 +0000 (22:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2019 06:22:47 +0000 (08:22 +0200)
commit73a649d2b98e25f4960b8081080c78695fea8bc7
treeaae18222da1de6dc2a20771407515d1f93ac639f
parentaa1d19f1f96764e72155235ece22461599d0e7ac
fonts: Use BUILD_BUG_ON() for checking empty font table

We have a nice macro, and the check of emptiness of the font table can
be done in a simpler way.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/fonts/fonts.c