Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
79351981
Commit
79351981
authored
Apr 09, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: remove useless return status
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
9026e588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
ft-irq.c
kernel/ft-irq.c
+7
-10
No files found.
kernel/ft-irq.c
View file @
79351981
...
...
@@ -50,9 +50,9 @@ static void copy_timestamps(struct fmctdc_dev *ft, int base_addr,
}
static
int
ft_read_sw_fifo
(
struct
fmctdc_dev
*
ft
,
int
channel
,
struct
zio_channel
*
chan
,
struct
ft_wr_timestamp
*
wrts
)
static
void
ft_read_sw_fifo
(
struct
fmctdc_dev
*
ft
,
int
channel
,
struct
zio_channel
*
chan
,
struct
ft_wr_timestamp
*
wrts
)
{
struct
zio_control
*
ctrl
;
struct
zio_ti
*
ti
=
chan
->
cset
->
ti
;
...
...
@@ -111,8 +111,6 @@ static int ft_read_sw_fifo(struct fmctdc_dev *ft, int channel,
v
[
FT_ATTR_DEV_SEQUENCE
]
=
ts
.
gseq_id
;
v
[
FT_ATTR_TDC_ZERO_OFFSET
]
=
ft
->
calib
.
zero_offset
[
channel
-
1
];
v
[
FT_ATTR_TDC_USER_OFFSET
]
=
st
->
user_offset
;
return
0
;
}
...
...
@@ -275,7 +273,7 @@ static void ft_readout_tasklet(unsigned long arg)
struct
ft_wr_timestamp
wrts
;
struct
zio_cset
*
cset
;
uint32_t
rd_ptr
;
int
count
,
dacapo
,
err
,
ret
;
int
count
,
dacapo
,
ret
;
ft
->
prev_wr_ptr
=
ft
->
cur_wr_ptr
;
ft
->
cur_wr_ptr
=
ft_readl
(
ft
,
TDC_REG_BUFFER_PTR
);
...
...
@@ -311,10 +309,9 @@ static void ft_readout_tasklet(unsigned long arg)
if
(
ZIO_TI_ARMED
&
cset
->
ti
->
flags
)
{
/* there is an active block, try reading an
accumulated sample */
err
=
ft_read_sw_fifo
(
ft
,
wrts
.
channel
-
1
,
cset
->
chan
,
&
wrts
);
if
(
!
err
)
zio_trigger_data_done
(
cset
);
ft_read_sw_fifo
(
ft
,
wrts
.
channel
-
1
,
cset
->
chan
,
&
wrts
);
zio_trigger_data_done
(
cset
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment