summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gs_fpgaboot
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2015-01-01 17:23:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 15:19:52 -0800
commitf37e90e9a15e03a4987790d192c4e7fceba2bdef (patch)
tree64eed5593ca62e7979ca33e9c2d29bf97f3bbbb5 /drivers/staging/gs_fpgaboot
parent9b872a74b8d15d388065ac7919555a5e036046dc (diff)
downloadlinux-f37e90e9a15e03a4987790d192c4e7fceba2bdef.tar.bz2
staging: gs_fpgaboot: io.c: Remove unused function
Remove the function bitswap() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Reviewed-by: Insop Song <Insop.Song@gainspeed.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gs_fpgaboot')
-rw-r--r--drivers/staging/gs_fpgaboot/io.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/gs_fpgaboot/io.c b/drivers/staging/gs_fpgaboot/io.c
index b260e45c6698..819db53da64d 100644
--- a/drivers/staging/gs_fpgaboot/io.c
+++ b/drivers/staging/gs_fpgaboot/io.c
@@ -79,15 +79,6 @@ void xl_shift_bytes_out(enum wbus bus_byte, unsigned char *pdata)
/*
* generic bit swap for xilinx SYSTEMMAP FPGA programming
*/
-static inline unsigned char bitswap(unsigned char s)
-{
- unsigned char d;
-
- d = (((s&0x80)>>7) | ((s&0x40)>>5) | ((s&0x20)>>3) | ((s&0x10)>>1) |
- ((s&0x08)<<1) | ((s&0x04)<<3) | ((s&0x02)<<5) | ((s&0x01)<<7));
- return d;
-}
-
void xl_program_b(int32_t i)
{
}