diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-03-29 10:02:27 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-04-02 14:39:08 +1100 |
commit | 960529a41e233aa82eef0957479ff9e99ccf60b3 (patch) | |
tree | fa335a84ab0442cd40e1dffe91c3b3015bb1911f /arch/sh/boards/board-urquell.c | |
parent | e07a086f49db5672f2d06e5c7ccb0597a63e38d5 (diff) | |
download | linux-next-960529a41e233aa82eef0957479ff9e99ccf60b3.tar.gz |
kernel, resource: use resource_overlaps() to simplify region_intersects()
The three checks in region_intersects() are to see whether two resources
overlap. This means it could be simplified with one resource_overlaps().
Also fix two typos in related function.
Link: http://lkml.kernel.org/r/20190305083432.23675-1-richardw.yang@linux.intel.com
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Yuan Yao <yuan.yao@linux.intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/sh/boards/board-urquell.c')
0 files changed, 0 insertions, 0 deletions