linux/arch/arm/mach-s3c64xx
Krzysztof Kozlowski 409c69be43 ASoC: samsung: Remove tests of member address
The driver was checking for non-NULL address of struct's members:
 - s3c_audio_pdata->type (union),
 - s3c_audio_pdata->type.i2s (embedded struct).

This is pointless as these will be always non-NULL.  The 's3c_audio_pdata'
is always initialized in static memory so it will be zeroed.
Additionally the 'type' member was an union with only one member.

It is safe to reorganize the structures to get rid of useless union and
checks for addresses to fix the coccinelle warning:
	>> sound/soc/samsung/i2s.c:1270:2-4: ERROR: test of a variable/field address

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-12-15 11:42:42 +00:00
..
include/mach ARM: SAMSUNG: Fix typos 2016-05-30 09:13:11 +02:00
ata-core.h ARM: SAMSUNG: local ata-core header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
backlight.h ARM: SAMSUNG: local backlight header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
common.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
common.h ARM: s3c64xx: avoid warning about 'struct device_node' 2016-07-14 14:46:43 +02:00
cpuidle.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
crag6410.h ARM: S3C64XX: Use fixed IRQ bases to avoid conflicts on Cragganmore 2015-03-27 01:58:08 +09:00
dev-audio.c ASoC: samsung: Remove tests of member address 2016-12-15 11:42:42 +00:00
dev-backlight.c ARM: S3C64XX: Use PWM lookup table for smdk6410 2015-10-13 05:04:22 +09:00
dev-uart.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
irq-pm.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
irq-uart.h ARM: SAMSUNG: local irq-uart header in mach-s3c64xx 2015-07-30 02:00:38 +09:00
Kconfig ARM: do away with ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB 2016-06-03 12:18:13 -07:00
mach-anw6410.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-crag6410-module.c ARM: s3c64xx: Delete unnecessary assignment for the field "owner" 2016-08-16 08:16:43 +02:00
mach-crag6410.c ARM: SoC multiplatform code changes for v4.5 2016-01-20 18:03:56 -08:00
mach-hmt.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-mini6410.c ARM: s3c64xx: use new adc/touchscreen driver 2015-12-01 21:50:25 +01:00
mach-ncp.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-real6410.c ARM: s3c64xx: use new adc/touchscreen driver 2015-12-01 21:50:25 +01:00
mach-s3c64xx-dt.c arm: Remove unnecessary of_platform_populate with default match table 2016-06-23 14:58:37 -05:00
mach-smartq5.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-smartq7.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-smartq.c ARM: s3c64xx: smartq: Avoid sparse warnings 2016-07-11 17:44:11 +02:00
mach-smartq.h
mach-smdk6400.c ARM: s3c64xx: enable sparse IRQ support 2015-12-01 21:50:24 +01:00
mach-smdk6410.c ARM: s3c64xx: mark regulator init data as unused 2016-02-01 10:27:26 +09:00
Makefile ARM: s3c64xx: allow building without board support 2015-12-01 21:50:26 +01:00
onenand-core.h ARM: SAMSUNG: local onenand-core header in mach-s3c64xx 2015-07-30 02:00:47 +09:00
pl080.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
pm.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
regs-gpio-memport.h ARM: S3C64XX: make regs-gpio-memport.h local 2013-01-10 10:45:39 -08:00
regs-modem.h ARM: S3C64XX: make regs-modem.h local 2013-01-10 10:45:39 -08:00
regs-srom.h ARM: S3C64XX: make regs-srom.h local 2013-01-10 10:45:39 -08:00
regs-sys.h ARM: S3C64XX: make regs-sys.h local 2013-01-10 10:45:40 -08:00
regs-syscon-power.h ARM: S3C64XX: make regs-syscon-power.h local 2013-01-10 10:45:40 -08:00
regs-usb-hsotg-phy.h ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
s3c6400.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
s3c6410.c ARM: s3c64xx: prepare initcalls for multiplatform 2015-12-01 21:50:24 +01:00
setup-fb-24bpp.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-i2c0.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-i2c1.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-ide.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-keypad.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-sdhci-gpio.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-spi.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-usb-phy.c ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx 2015-07-30 02:00:36 +09:00
sleep.S ARM: pm: samsung: move cpu_suspend into C code 2011-06-24 08:48:44 +01:00
watchdog-reset.h ARM: SAMSUNG: local watchdog-reset header in mach-s3c64xx 2015-07-30 02:00:52 +09:00