Skip to content

Commit b887ec6

Browse files
mikeyozbenh
authored andcommitted
powerpc: remove unused variable in emulate_fp_pair
regs is not used in emulate_fp_pair so remove it. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent c1cb299 commit b887ec6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/powerpc/kernel/align.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ static int emulate_multiple(struct pt_regs *regs, unsigned char __user *addr,
363363
* Only POWER6 has these instructions, and it does true little-endian,
364364
* so we don't need the address swizzling.
365365
*/
366-
static int emulate_fp_pair(struct pt_regs *regs, unsigned char __user *addr,
367-
unsigned int reg, unsigned int flags)
366+
static int emulate_fp_pair(unsigned char __user *addr, unsigned int reg,
367+
unsigned int flags)
368368
{
369369
char *ptr = (char *) &current->thread.TS_FPR(reg);
370370
int i, ret;
@@ -759,7 +759,7 @@ int fix_alignment(struct pt_regs *regs)
759759

760760
/* Special case for 16-byte FP loads and stores */
761761
if (nb == 16)
762-
return emulate_fp_pair(regs, addr, reg, flags);
762+
return emulate_fp_pair(addr, reg, flags);
763763

764764
/* If we are loading, get the data from user space, else
765765
* get it from register values

0 commit comments

Comments
 (0)