Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

intel_th: Remove redundant initialization of pointer outp

The pointer outp is being initialized with a value that is never
read. All the reads of outp occur after outp has neen set to an
appropriate value rather than using the first value is initialized
with. The assignment is redundant and can be removed.

Cleans up clang scan warning:
drivers/hwtracing/intel_th/sth.c:73:15: warning: Value stored to
'outp' during its initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240429130119.1518073-9-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
988001c7 212886f5

+1 -1
+1 -1
drivers/hwtracing/intel_th/sth.c
··· 70 70 struct sth_device *sth = container_of(stm_data, struct sth_device, stm); 71 71 struct intel_th_channel __iomem *out = 72 72 sth_channel(sth, master, channel); 73 - u64 __iomem *outp = &out->Dn; 74 73 unsigned long reg = REG_STH_TRIG; 74 + u64 __iomem *outp; 75 75 76 76 #ifndef CONFIG_64BIT 77 77 if (size > 4)