media: camss: Replace hard coded value with parameter
Kernel test robot reported below warning -> drivers/media/platform/qcom/camss/camss-csid-gen2.c:407:3: warning: Value stored to 'val' is never read [clang-analyzer-deadcode.DeadStores] Replace hard coded value with val. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com> Reviewed-by: Robert Foss <robert.foss@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
9f1f4b6424
commit
a312f89826
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ static void csid_configure_stream(struct csid_device *csid, u8 enable)
|
|||
writel_relaxed(val, csid->base + CSID_RDI_FRM_DROP_PERIOD(0));
|
||||
|
||||
val = 0;
|
||||
writel_relaxed(0, csid->base + CSID_RDI_FRM_DROP_PATTERN(0));
|
||||
writel_relaxed(val, csid->base + CSID_RDI_FRM_DROP_PATTERN(0));
|
||||
|
||||
val = 1;
|
||||
writel_relaxed(val, csid->base + CSID_RDI_IRQ_SUBSAMPLE_PERIOD(0));
|
||||
|
|
Loading…
Add table
Reference in a new issue