summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-09-22 13:47:09 +0200
committerTakashi Iwai <tiwai@suse.de>2022-09-22 13:47:09 +0200
commitcbdac8bc2cbf91b42a92869dc938b809054d4fae (patch)
tree06118f3dc9ea6dab868ebc89aad68e19cd4c7800 /include/linux/overflow.h
parent79764ec772bc1346441ae1c4b1f3bd1991d634e8 (diff)
parent0a0342ede303fc420f3a388e1ae82da3ae8ff6bd (diff)
Merge tag 'asoc-fix-v6.0-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.0 A few device specific fixes, nothing too large, and a new device ID for a Dell laptop.
Diffstat (limited to 'include/linux/overflow.h')
-rw-r--r--include/linux/overflow.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/overflow.h b/include/linux/overflow.h
index f1221d11f8e5..0eb3b192f07a 100644
--- a/include/linux/overflow.h
+++ b/include/linux/overflow.h
@@ -30,7 +30,6 @@
* https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html -
* credit to Christian Biere.
*/
-#define is_signed_type(type) (((type)(-1)) < (type)1)
#define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
#define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T)))
#define type_min(T) ((T)((T)-type_max(T)-(T)1))