Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72355
b: refs/heads/master
c: 4d022ad
h: refs/heads/master
i:
  72353: 2480308
  72351: fcad607
v: v3
  • Loading branch information
Alejandro Martinez Ruiz authored and Thomas Gleixner committed Oct 23, 2007
1 parent cc555a2 commit ee7b675
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c660065383976f09fbdae86c33448c8da643d4e
refs/heads/master: 4d022adab4511892226f1eae00a44502bf685ae5
6 changes: 2 additions & 4 deletions trunk/arch/x86/boot/compressed/relocs.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ static const char* safe_abs_relocs[] = {

static int is_safe_abs_reloc(const char* sym_name)
{
int i, array_size;

array_size = sizeof(safe_abs_relocs)/sizeof(char*);
int i;

for(i = 0; i < array_size; i++) {
for(i = 0; i < ARRAY_SIZE(safe_abs_relocs); i++) {
if (!strcmp(sym_name, safe_abs_relocs[i]))
/* Match found */
return 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static void inquire_remote_apic(int apicid)

printk(KERN_INFO "Inquiring remote APIC #%d...\n", apicid);

for (i = 0; i < sizeof(regs) / sizeof(*regs); i++) {
for (i = 0; i < ARRAY_SIZE(regs); i++) {
printk("... APIC #%d %s: ", apicid, names[i]);

/*
Expand Down

0 comments on commit ee7b675

Please sign in to comment.